From b7155231481c4a7fa7897371f6dbfded3c637db9 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 20 Dec 2017 18:21:08 +0100 Subject: ignore INSERT IGNORE --- it_dbi.class | 4 ++-- 1 file 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']) -- cgit v1.2.3