summaryrefslogtreecommitdiff
path: root/dbi.class
diff options
context:
space:
mode:
authorUrban Müller2007-07-06 14:39:46 +0000
committerUrban Müller2007-07-06 14:39:46 +0000
commitc44032dc17cf20ecd20d92d354ab388e500934a5 (patch)
tree67084e704ba0dd1177aace70a2a79e1d50fcb989 /dbi.class
parentf3c4c425f73155b981417c3e4c685e997cc39ffa (diff)
downloaditools-c44032dc17cf20ecd20d92d354ab388e500934a5.tar.gz
itools-c44032dc17cf20ecd20d92d354ab388e500934a5.tar.bz2
itools-c44032dc17cf20ecd20d92d354ab388e500934a5.zip
more info on sporadic errs
Diffstat (limited to 'dbi.class')
-rw-r--r--dbi.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbi.class b/dbi.class
index 4be2802..853470b 100644
--- a/dbi.class
+++ b/dbi.class
@@ -107,7 +107,8 @@ function it_dbi($config, $query = null)
$table = mysql_tablename($tables, $i);
$classname = "$this->_classprefix$table";
- $result = mysql_list_fields($this->_db, $table, $this->_link);
+ if (!($result = @mysql_list_fields($this->_db, $table, $this->_link)))
+ $this->_fatal("it_dbi(): can't list fields \"$this->_db\": " . mysql_error($this->_link));
for ($fields=array(), $j=0; $j < mysql_num_fields($result); $j++)
{