summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-02-11 00:40:41 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-02-11 00:40:41 +0100
commit7555ade507982af16ed763e2e560a60892408bd2 (patch)
tree4ccc50282cc4ab3353e9b9243646898529ded021 /system/database
parent7ecd53b7da5164a5a8c1c20b3ea5f67ebcfdabdf (diff)
clarifying comment on sqlite escape table
Diffstat (limited to 'system/database')
-rw-r--r--system/database/drivers/sqlite/sqlite_driver.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/system/database/drivers/sqlite/sqlite_driver.php b/system/database/drivers/sqlite/sqlite_driver.php
index b6cb460b1..c51edfb07 100644
--- a/system/database/drivers/sqlite/sqlite_driver.php
+++ b/system/database/drivers/sqlite/sqlite_driver.php
@@ -402,11 +402,9 @@ class CI_DB_sqlite_driver extends CI_DB {
*/
function _escape_table($table)
{
- if (stristr($table, '.'))
- {
- $table = preg_replace("/\./", ".", $table);
- }
-
+
+ // other database drivers use this to add backticks, hence this
+ // function is simply going to return the tablename for sqlite
return $table;
}