Skip to content
Snippets Groups Projects
Commit 104f2873 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Qual: Remove code to fix dynamically bad code.

parent 739f80b4
Branches
Tags
No related merge requests found
...@@ -541,7 +541,7 @@ class DoliDBPgsql extends DoliDB ...@@ -541,7 +541,7 @@ class DoliDBPgsql extends DoliDB
//print "After convertSQLFromMysql:\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. // Fix bad formed requests. If request contains a date without quotes, we fix this but this should not occurs.
$loop=true; /* $loop=true;
while ($loop) while ($loop)
{ {
if (preg_match('/([^\'])([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9])/',$query)) if (preg_match('/([^\'])([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9])/',$query))
...@@ -551,7 +551,7 @@ class DoliDBPgsql extends DoliDB ...@@ -551,7 +551,7 @@ class DoliDBPgsql extends DoliDB
} }
else $loop=false; else $loop=false;
} }
*/
if ($usesavepoint && $this->transaction_opened) if ($usesavepoint && $this->transaction_opened)
{ {
@pg_query($this->db, 'SAVEPOINT mysavepoint'); @pg_query($this->db, 'SAVEPOINT mysavepoint');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment