From: timriker Date: Wed, 31 Dec 2003 03:40:05 +0000 (+0000) Subject: patch from dondelelcaro X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=42c917bf6e6ac756cc551be684106be0320296cd;p=infobot.git patch from dondelelcaro git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@915 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/dbi.pl b/src/dbi.pl index 4936d42..6761b23 100644 --- a/src/dbi.pl +++ b/src/dbi.pl @@ -622,9 +622,12 @@ sub checkTables { } # retrieve a list of db's from the server. - foreach ($dbh->func('_ListTables')) { - $db{$_} = 1; + my @tables = map {s/^\`//; s/\`$//; $_;} $dbh->func('_ListTables'); + if ($#tables == -1){ + @tables = $dbh->tables; } + &status("Tables: ".join(',',@tables)); + @db{@tables} = (1) x @tables; } elsif ($param{DBType} =~ /^SQLite$/i) {