diff options
author | Nathan Gass | 2022-03-31 16:08:07 +0200 |
---|---|---|
committer | Nathan Gass | 2022-03-31 16:08:07 +0200 |
commit | 4bc22c716706b8b7c6501385de3f34d8b835465a (patch) | |
tree | eb642713cc8db753b6f82ac97351205678566e7a | |
parent | 46e79a9468ca88b51c1a8982b600f243ce0a6ffe (diff) | |
download | itools-4bc22c716706b8b7c6501385de3f34d8b835465a.tar.gz itools-4bc22c716706b8b7c6501385de3f34d8b835465a.tar.bz2 itools-4bc22c716706b8b7c6501385de3f34d8b835465a.zip |
move sql to body of error messages
-rw-r--r-- | it_dbi.class | 4 |
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; |