summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_dbi.class')
-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;