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

Fix: Save error only if it's not error to say there is error.

parent 29d90f37
No related branches found
No related tags found
No related merge requests found
......@@ -556,9 +556,12 @@ class DoliDBPgsql
{
if (! $ret)
{
$this->lastqueryerror = $query;
$this->lasterror = $this->error();
$this->lasterrno = $this->errno();
if ($this->errno() != 'DB_ERROR_25P02')
{
$this->lastqueryerror = $query;
$this->lasterror = $this->error();
$this->lasterrno = $this->errno();
}
dol_syslog(get_class($this)."::query SQL error: ".$query." ".$this->lasterrno, 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.
Finish editing this message first!
Please register or to comment