mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
DB/Errors
* don't need to handle sql warnings in batch when the error handler doesn't use exit() any longer * display warnings as [WARN] and use consts instead of magic numbers
This commit is contained in:
@@ -169,7 +169,7 @@ class DbSimple_Mysqli extends DbSimple_Database
|
||||
if ($this->link->warning_count) {
|
||||
if ($warn = $this->link->query("SHOW WARNINGS")) {
|
||||
while ($warnRow = $warn->fetch_row())
|
||||
if ($warnRow[0] !== 'Note')
|
||||
if ($warnRow[0] === 'Warning')
|
||||
$this->_setLastError(-$warnRow[1], $warnRow[2], $queryMain[0]);
|
||||
|
||||
$warn->close();
|
||||
|
||||
Reference in New Issue
Block a user