summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2008-12-16 17:22:37 +0000
committerUrban Müller2008-12-16 17:22:37 +0000
commite1f864f71db0907b966470726f9c3887aabfa44e (patch)
treed5bc8fcaa7e86f48d4fb195f3fe009a0f4f3cb4d
parent3a50d48b13ecef44438b33be15b8fa6491f9899a (diff)
downloaditools-e1f864f71db0907b966470726f9c3887aabfa44e.tar.gz
itools-e1f864f71db0907b966470726f9c3887aabfa44e.tar.bz2
itools-e1f864f71db0907b966470726f9c3887aabfa44e.zip
output errno
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 3878759..df79f0e 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -359,7 +359,7 @@ function _fatal($text)
$text = get_class($this).'::'.$text;
if ($this->_link && ($errstr = mysql_error($this->_link)))
- $text = "\"$errstr\" in $text";
+ $text = "\"$errstr\" in $text [errno " . mysql_errno($this->_link) . "]";
if ($this->_link && ($res = @mysql_fetch_row(mysql_query('select database()', $this->_link)))) # dont create extra errs
$text .= ", DB: " . $res[0];