Fix mysql get_system_tables method

This commit is contained in:
Timothy Warren 2012-04-16 10:53:28 -04:00
parent 181eab239f
commit 138e236673
2 changed files with 6 additions and 1 deletions

View File

@ -75,7 +75,12 @@ class MySQL extends DB_PDO {
*/
public function get_system_tables()
{
return array('information_schema');
$sql = 'SELECT `TABLE_NAME` FROM `information_schema`.`TABLES`
WHERE `TABLE_SCHEMA`=\'information_schema\'';
$res = $this->query($sql);
return db_filter($res->fetchAll(PDO::FETCH_ASSOC), 'TABLE_NAME');
}
// --------------------------------------------------------------------------

Binary file not shown.