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

Fix: Use current errno into log.

parent f0af1258
No related branches found
No related tags found
No related merge requests found
......@@ -563,7 +563,7 @@ class DoliDBPgsql
$this->lasterror = $this->error();
$this->lasterrno = $this->errno();
}
dol_syslog(get_class($this)."::query SQL error: ".$query." ".$this->lasterrno, LOG_WARNING);
dol_syslog(get_class($this)."::query SQL error usesavepoint = ".$usesavepoint." - ".$query." ".$this->errno(), LOG_WARNING);
//print "\n>> ".$query."<br>\n";
//print '>> '.$this->lasterrno.' - '.$this->lasterror.' - '.$this->lastqueryerror."<br>\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment