mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 23:52:24 +01:00
Fix: Pb with pgsql
This commit is contained in:
@@ -298,6 +298,9 @@ class DoliDBPgsql extends DoliDB
|
|||||||
$line=str_replace(' LIKE \'',' ILIKE \'',$line);
|
$line=str_replace(' LIKE \'',' ILIKE \'',$line);
|
||||||
$line=str_replace(' LIKE BINARY \'',' LIKE \'',$line);
|
$line=str_replace(' LIKE BINARY \'',' LIKE \'',$line);
|
||||||
|
|
||||||
|
// Replace INSERT IGNORE into INSERT
|
||||||
|
$line=preg_replace('/^INSERT IGNORE/','INSERT',$line);
|
||||||
|
|
||||||
// Delete using criteria on other table must not declare twice the deleted table
|
// Delete using criteria on other table must not declare twice the deleted table
|
||||||
// DELETE FROM tabletodelete USING tabletodelete, othertable -> DELETE FROM tabletodelete USING othertable
|
// DELETE FROM tabletodelete USING tabletodelete, othertable -> DELETE FROM tabletodelete USING othertable
|
||||||
if (preg_match('/DELETE FROM ([a-z_]+) USING ([a-z_]+), ([a-z_]+)/i',$line,$reg))
|
if (preg_match('/DELETE FROM ([a-z_]+) USING ([a-z_]+), ([a-z_]+)/i',$line,$reg))
|
||||||
|
|||||||
Reference in New Issue
Block a user