From 7e01c97e53d2ed1d7560f68fa923c4ceafe8f0ce Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 15 Dec 2009 00:19:37 +0000 Subject: [PATCH] MINOR Use $this->query instead of DB::query() for instance MSSQLDatabase::createTable() temp table drop queries --- code/MSSQLDatabase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index d885172..f7ef98e 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -339,9 +339,9 @@ class MSSQLDatabase extends SS_Database { $tableName = "#$tableName"; // mssql stores temporary tables in the "tempdb" database - we need to drop it first before re-creating it! // We have to do a specific query to do this because it's a special type of table object - $drop = DB::query("SELECT 1 FROM tempdb..sysobjects WHERE name LIKE '$tableName%'"); + $drop = $this->query("SELECT 1 FROM tempdb..sysobjects WHERE name LIKE '$tableName%'"); if($drop->value()) { - DB::query("DROP TABLE $tableName"); + $this->query("DROP TABLE $tableName"); } }