BUGFIX: Fixed MSSQLDatabase::hasTable()

This commit is contained in:
Sam Minnee 2010-06-03 00:58:32 +00:00
parent 9a1ee37cbd
commit 53156eb94e

View File

@ -1013,7 +1013,9 @@ class MSSQLDatabase extends SS_Database {
* @todo Make a proper implementation
*/
function hasTable($tableName) {
return true;
$SQL_tableName = Convert::raw2sql($tableName);
$value = DB::query("SELECT table_name FROM information_schema.tables WHERE table_name = '$SQL_tableName'")->value();
return (bool)$value;
}
/**