summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/sqlite/sqlite_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-02-12 02:23:07 +0100
committerAndrey Andreev <narf@bofh.bg>2012-02-12 02:23:07 +0100
commitd33e24c2a649420d420ad9b11efb1bbf2421114c (patch)
treebf7f8eefefedb5c1521c6327c179cf34b1d9ec25 /system/database/drivers/sqlite/sqlite_driver.php
parenta2710f435fa569d29a02603699e450506429f33b (diff)
Add SQLite escape character
Diffstat (limited to 'system/database/drivers/sqlite/sqlite_driver.php')
-rw-r--r--system/database/drivers/sqlite/sqlite_driver.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/sqlite/sqlite_driver.php b/system/database/drivers/sqlite/sqlite_driver.php
index 119722d2f..25e012bf0 100644
--- a/system/database/drivers/sqlite/sqlite_driver.php
+++ b/system/database/drivers/sqlite/sqlite_driver.php
@@ -43,7 +43,7 @@ class CI_DB_sqlite_driver extends CI_DB {
public $dbdriver = 'sqlite';
// The character used to escape with - not needed for SQLite
- protected $_escape_char = '';
+ protected $_escape_char = '"';
// clause and character used for LIKE escape sequences
protected $_like_escape_str = ' ESCAPE \'%s\' ';
@@ -338,7 +338,7 @@ class CI_DB_sqlite_driver extends CI_DB {
}
$query = $query->row();
- $this->_reset_select();
+ $this->_data_seek(0);
return (int) $query->numrows;
}