mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE: "SHOW TABLES" replaced with DB-specific version
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@72914 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fca5a8c573
commit
8182a015f6
@ -37,7 +37,7 @@ class ClassInfo {
|
||||
// Cache the list of all table names to reduce on DB traffic
|
||||
if(self::$_cache_all_tables === null) {
|
||||
self::$_cache_all_tables = array();
|
||||
$tables = DB::query("SHOW TABLES")->column();
|
||||
$tables = DB::query(DB::getConn()->allTablesSQL())->column();
|
||||
foreach($tables as $table) self::$_cache_all_tables[strtolower($table)] = true;
|
||||
}
|
||||
return isset(self::$_cache_all_tables[strtolower($class)]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user