diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-04-05 15:00:32 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-04-05 15:00:32 +0200 |
commit | a6fe36eb42e5d8df8336f8c711ff8a6e0ee509e7 (patch) | |
tree | 668b94c8a096184ab60bc87ddfab695050ecfd65 /system/database/drivers/sqlite3/sqlite3_driver.php | |
parent | 17ceeae7ddd5c4eba2b1d0b25a17706b3d873346 (diff) |
Added a default _truncate() method to CI_DB_active_record
Diffstat (limited to 'system/database/drivers/sqlite3/sqlite3_driver.php')
-rw-r--r-- | system/database/drivers/sqlite3/sqlite3_driver.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/system/database/drivers/sqlite3/sqlite3_driver.php b/system/database/drivers/sqlite3/sqlite3_driver.php index 199706e69..c78f0c4fe 100644 --- a/system/database/drivers/sqlite3/sqlite3_driver.php +++ b/system/database/drivers/sqlite3/sqlite3_driver.php @@ -2,7 +2,7 @@ /** * CodeIgniter * - * An open source application development framework for PHP 5.1.6 or newer + * An open source application development framework for PHP 5.2.4 or newer * * NOTICE OF LICENSE * @@ -420,15 +420,16 @@ class CI_DB_sqlite3_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, then - * this method maps to "DELETE FROM table" + * + * If the database does not support the truncate() command, then, + * then this method maps to 'DELETE FROM table' * * @param string the table name * @return string */ protected function _truncate($table) { - return $this->_delete($table); + return 'DELETE FROM '.$table; } // -------------------------------------------------------------------- |