summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorUrban Müller2017-12-20 15:58:01 +0100
committerUrban Müller2017-12-20 15:58:01 +0100
commit1d213f44704377525aa15d254ad3b9ec10363eb6 (patch)
treeb21277bb41617aa246db645a204a1b6597f4ad7f /it_dbi.class
parent646b7b516782228df96329806cba51b767751d65 (diff)
downloaditools-1d213f44704377525aa15d254ad3b9ec10363eb6.tar.gz
itools-1d213f44704377525aa15d254ad3b9ec10363eb6.tar.bz2
itools-1d213f44704377525aa15d254ad3b9ec10363eb6.zip
add query to errs
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
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'])