Fix mysql get_system_tables method
This commit is contained in:
parent
181eab239f
commit
138e236673
@ -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.
Loading…
Reference in New Issue
Block a user