2
0
forked from Wavyzz/dolibarr

Fix: Postgresql compatibility

New: Can filter on payment type and bank account in payment lists.
This commit is contained in:
Laurent Destailleur
2010-08-29 21:11:42 +00:00
parent 00803e8ae8
commit f24214d9ef
6 changed files with 170 additions and 132 deletions

View File

@@ -208,6 +208,9 @@ class DoliDb
$line=preg_replace('/unique index\s*\((\w+\s*,\s*\w+)\)/i','UNIQUE\(\\1\)',$line);
}
// To have postgresql case sensitive
$line=str_replace(' LIKE \'',' ILIKE \'',$line);
# We remove end of requests "AFTER fieldxxx"
$line=preg_replace('/AFTER [a-z0-9_]+/i','',$line);