Work on PDO Sqlite driver

This commit is contained in:
Laurent Destailleur
2012-01-02 02:46:12 +01:00
parent fb662a91db
commit 6f63c5ecff
6 changed files with 227 additions and 49 deletions

View File

@@ -507,7 +507,7 @@ class DoliDBPgsql
// Convert MySQL syntax to PostgresSQL syntax
$query=$this->convertSQLFromMysql($query,$type);
//print "FF\n".$query."<br>\n";
//print "After convertSQLFromMysql:\n".$query."<br>\n";
// Fix bad formed requests. If request contains a date without quotes, we fix this but this should not occurs.
$loop=true;
@@ -786,7 +786,7 @@ class DoliDBPgsql
return 'DB_ERROR_FAILED_TO_CONNECT';
}
else {
// Constants to convert a MySql error code to a generic Dolibarr error code
// Constants to convert error code to a generic Dolibarr error code
$errorcode_map = array(
1004 => 'DB_ERROR_CANNOT_CREATE',
1005 => 'DB_ERROR_CANNOT_CREATE',