summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-12-20 18:21:08 +0100
committerUrban Müller2017-12-21 14:17:11 +0100
commitb7155231481c4a7fa7897371f6dbfded3c637db9 (patch)
tree52903d6a8c951a49d37d9daa4539913049edfe8d
parenta8f466d16b7aecd15ec336171a0fbeceadc2c4cc (diff)
downloaditools-b7155231481c4a7fa7897371f6dbfded3c637db9.tar.gz
itools-b7155231481c4a7fa7897371f6dbfded3c637db9.tar.bz2
itools-b7155231481c4a7fa7897371f6dbfded3c637db9.zip
ignore INSERT IGNORE
-rw-r--r--it_dbi.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index d86f055..7ea446f 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -536,12 +536,12 @@ function query($query, $p = array())
if (($warning = $this->_link->get_warnings()))
{
do {
- if (!it::match(trim($this->_p['ignored_warnings'] . "|1364|1261|1051", "|"), $warning->errno))
+ if (!it::match(trim($this->_p['ignored_warnings'] . "|1364|1261|1051|1062", "|"), $warning->errno))
$messages[] = $warning->message . " [error $warning->errno]";
} while ($warning->next() && ++$checked < 20);
if ($messages)
- it::error('title' => "Mysql warning: " . $messages[0], 'body' => "$query\n\n" . join("\n", $messages) . "\n");
+ it::error(['title' => "Mysql warning: " . $messages[0], 'body' => "$query\n\n" . join("\n", $messages) . "\n"]);
}
if ($writing && $this->_p['throttle_writes'])