diff options
author | Urban Müller | 2007-07-06 14:39:46 +0000 |
---|---|---|
committer | Urban Müller | 2007-07-06 14:39:46 +0000 |
commit | c44032dc17cf20ecd20d92d354ab388e500934a5 (patch) | |
tree | 67084e704ba0dd1177aace70a2a79e1d50fcb989 | |
parent | f3c4c425f73155b981417c3e4c685e997cc39ffa (diff) | |
download | itools-c44032dc17cf20ecd20d92d354ab388e500934a5.tar.gz itools-c44032dc17cf20ecd20d92d354ab388e500934a5.tar.bz2 itools-c44032dc17cf20ecd20d92d354ab388e500934a5.zip |
more info on sporadic errs
-rw-r--r-- | dbi.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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++) { |