Undefined constant

This commit is contained in:
Marcos García de La Fuente 2014-06-13 01:48:11 +02:00
parent 0ed2481a20
commit 2e2cecb6c7
5 changed files with 6 additions and 6 deletions

View File

@ -373,7 +373,7 @@ class DoliDBMssql extends DoliDB
$this->lasterror = $this->error();
$this->lasterrno = $row["code"];
dol_syslog(get_class($this)."::query SQL error: ".$this->lasterror." (".$this->lasterrno.")", LOG_ERROR);
dol_syslog(get_class($this)."::query SQL error: ".$this->lasterror." (".$this->lasterrno.")", LOG_ERR);
}
$this->lastquery=$query;
$this->_results = $ret;

View File

@ -274,8 +274,8 @@ class DoliDBMysql extends DoliDB
$this->lasterror = $this->error();
$this->lasterrno = $this->errno();
dol_syslog(get_class($this)."::query SQL Error query: ".$query, LOG_ERROR);
dol_syslog(get_class($this)."::query SQL Error message: ".$this->lasterror." (".$this->lasterrno.")", LOG_ERROR);
dol_syslog(get_class($this)."::query SQL Error query: ".$query, LOG_ERR);
dol_syslog(get_class($this)."::query SQL Error message: ".$this->lasterror." (".$this->lasterrno.")", LOG_ERR);
}
$this->lastquery=$query;
$this->_results = $ret;

View File

@ -276,7 +276,7 @@ class DoliDBMysqli extends DoliDB
$this->lasterror = $this->error();
$this->lasterrno = $this->errno();
dol_syslog(get_class($this)."::query SQL error: ".$this->lasterror." (".$this->lasterrno.")", LOG_ERROR);
dol_syslog(get_class($this)."::query SQL error: ".$this->lasterror." (".$this->lasterrno.")", LOG_ERR);
}
$this->lastquery=$query;
$this->_results = $ret;

View File

@ -506,7 +506,7 @@ class DoliDBPgsql extends DoliDB
$this->lasterror = $this->error();
$this->lasterrno = $this->errno();
}
dol_syslog(get_class($this)."::query SQL error usesavepoint = ".$usesavepoint." - ".$this->lasterror." (".$this->lasterrno.")", LOG_ERROR);
dol_syslog(get_class($this)."::query SQL error usesavepoint = ".$usesavepoint." - ".$this->lasterror." (".$this->lasterrno.")", LOG_ERR);
if ($usesavepoint && $this->transaction_opened) // Warning, after that errno will be erased
{

View File

@ -416,7 +416,7 @@ class DoliDBSqlite extends DoliDB
$errormsg .= ' ('.$this->lasterrno.')';
}
dol_syslog($errormsg, LOG_ERROR);
dol_syslog($errormsg, LOG_ERR);
}
$this->lastquery=$query;
$this->_results = $ret;