Fix: pgsql driver not complete
Conflicts: htdocs/core/db/pgsql.class.php
This commit is contained in:
parent
48bbcc6f4a
commit
7a670c5bc7
@ -190,6 +190,8 @@ class DoliDBPgsql extends DoliDB
|
|||||||
else if (preg_match('/DROP TABLE/i',$line)) $type='dml';
|
else if (preg_match('/DROP TABLE/i',$line)) $type='dml';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$line=preg_replace('/ as signed\)/i',' as integer\)',$line);
|
||||||
|
|
||||||
if ($type == 'dml')
|
if ($type == 'dml')
|
||||||
{
|
{
|
||||||
$line=preg_replace('/\s/',' ',$line); // Replace tabulation with space
|
$line=preg_replace('/\s/',' ',$line); // Replace tabulation with space
|
||||||
@ -214,7 +216,6 @@ class DoliDBPgsql extends DoliDB
|
|||||||
|
|
||||||
// nuke unsigned
|
// nuke unsigned
|
||||||
$line=preg_replace('/(int\w+|smallint)\s+unsigned/i','\\1',$line);
|
$line=preg_replace('/(int\w+|smallint)\s+unsigned/i','\\1',$line);
|
||||||
$line=preg_replace('/as signed/i','as integer',$line);
|
|
||||||
|
|
||||||
// blob -> text
|
// blob -> text
|
||||||
$line=preg_replace('/\w*blob/i','text',$line);
|
$line=preg_replace('/\w*blob/i','text',$line);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user