summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mssql/mssql_driver.php
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-04-05 16:47:59 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-04-05 16:47:59 +0200
commit57414b7ee33c8e3c6ee9fd2f63353bf9fa353651 (patch)
tree92276c49037a3dc9e046278c6c971a05d92d9a87 /system/database/drivers/mssql/mssql_driver.php
parent0793b1c918a0146920b1a03323f055521c4a9c66 (diff)
parent6d83cde3ba326f400b11475c51a4becec51c2de8 (diff)
Merge remote-tracking branch 'upstream/develop' into db-tests
Diffstat (limited to 'system/database/drivers/mssql/mssql_driver.php')
-rw-r--r--system/database/drivers/mssql/mssql_driver.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php
index 3604e80fb..055c9decb 100644
--- a/system/database/drivers/mssql/mssql_driver.php
+++ b/system/database/drivers/mssql/mssql_driver.php
@@ -469,15 +469,16 @@ class CI_DB_mssql_driver extends CI_DB {
* Truncate statement
*
* Generates a platform-specific truncate string from the supplied data
- * If the database does not support the truncate() command
- * This function maps to "DELETE FROM table"
+ *
+ * If the database does not support the truncate() command,
+ * then this method maps to 'DELETE FROM table'
*
* @param string the table name
* @return string
*/
protected function _truncate($table)
{
- return "TRUNCATE ".$table;
+ return 'TRUNCATE TABLE '.$table;
}
// --------------------------------------------------------------------