mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
MySQL: PDO vs Non-PDO consistency fixes. Also new '_DUPLICATE_KEY_UPDATE' flag added to insert() method. When true and a duplicate unique key is found the matching record will automatically be updated.
This commit is contained in:
@@ -167,7 +167,7 @@ class e107_db_debug {
|
||||
$t['marker'] = $this->curTimeMark;
|
||||
$t['caller'] = "$sCallingFile($sCallingLine)";
|
||||
$t['query'] = $query;
|
||||
$t['ok'] = $sQryRes ? TRUE : FALSE;
|
||||
$t['ok'] = ($sQryRes !==false) ? true : false;
|
||||
$t['error'] = $sQryRes ? '' : $sql->getLastErrorText(); // mysql_error();
|
||||
$t['nFields'] = $nFields;
|
||||
$t['time'] = $mytime;
|
||||
|
Reference in New Issue
Block a user