Fix: Use current errno into log.

This commit is contained in:
Laurent Destailleur 2012-02-19 02:07:13 +01:00
parent f0af1258e3
commit dd766cbb79

View File

@ -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";