From 1d213f44704377525aa15d254ad3b9ec10363eb6 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 20 Dec 2017 15:58:01 +0100 Subject: add query to errs --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_dbi.class') diff --git a/it_dbi.class b/it_dbi.class index c896141..c975f01 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -540,7 +540,7 @@ function query($query, $p = array()) } while ($warning->next() && ++$checked < 20); if ($messages) - it::error('title' => "Mysql warning: " . $messages[0], 'body' => 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