summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2022-03-31 16:08:07 +0200
committerNathan Gass2022-03-31 16:08:07 +0200
commit4bc22c716706b8b7c6501385de3f34d8b835465a (patch)
treeeb642713cc8db753b6f82ac97351205678566e7a
parent46e79a9468ca88b51c1a8982b600f243ce0a6ffe (diff)
downloaditools-4bc22c716706b8b7c6501385de3f34d8b835465a.tar.gz
itools-4bc22c716706b8b7c6501385de3f34d8b835465a.tar.bz2
itools-4bc22c716706b8b7c6501385de3f34d8b835465a.zip
move sql to body of error messages
-rw-r--r--it_dbi.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 240f6af..ae77486 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -578,7 +578,7 @@ function query($query, $p = array())
{
if ($result === null || !$p['safety'])
return false;
- $this->_fatal("query(\"$query\") failed");
+ $this->_fatal("query() failed", $query);
}
else if (it::match('^(CREATE|ALTER|DROP) ', $query, array('utf8' => false)))
{
@@ -687,7 +687,7 @@ function select(...$args)
}
if (!$this->iterate() && ($this->_p['safety'] >= 2))
- $this->_fatal("select(): query produced no results: \"$sql\"");
+ $this->_fatal("select(): query produced no results", $sql);
}
$this->_nofetch = !$nofetch;