diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index 010fcf191cc..a46141dc2fd 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -190,6 +190,8 @@ class DoliDBPgsql extends DoliDB else if (preg_match('/DROP TABLE/i',$line)) $type='dml'; } + $line=preg_replace('/ as signed\)/i',' as integer\)',$line); + if ($type == 'dml') { $line=preg_replace('/\s/',' ',$line); // Replace tabulation with space @@ -214,8 +216,7 @@ class DoliDBPgsql extends DoliDB // nuke unsigned $line=preg_replace('/(int\w+|smallint)\s+unsigned/i','\\1',$line); - $line=preg_replace('/as signed/i','as integer',$line); - + // blob -> text $line=preg_replace('/\w*blob/i','text',$line);