diff options
author | Urban Müller | 2008-12-16 17:22:37 +0000 |
---|---|---|
committer | Urban Müller | 2008-12-16 17:22:37 +0000 |
commit | e1f864f71db0907b966470726f9c3887aabfa44e (patch) | |
tree | d5bc8fcaa7e86f48d4fb195f3fe009a0f4f3cb4d | |
parent | 3a50d48b13ecef44438b33be15b8fa6491f9899a (diff) | |
download | itools-e1f864f71db0907b966470726f9c3887aabfa44e.tar.gz itools-e1f864f71db0907b966470726f9c3887aabfa44e.tar.bz2 itools-e1f864f71db0907b966470726f9c3887aabfa44e.zip |
output errno
-rw-r--r-- | it_dbi.class | 2 |
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]; |