summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-04 11:37:51 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-04 11:37:51 +0200
commit2ea33c37e9bfa3ff0e029c18a0d2c9ef05016bf0 (patch)
treec74a370bed4e0ca8b7a14932a14f671552c5434e /system/database/DB_driver.php
parent7bd1690b8b1c74ee6d6ff3868525d8cdc0ec0803 (diff)
Fix issue #1789
Signed-off-by: Andrey Andreev <narf@bofh.bg>
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index e61af91b7..b64b977cb 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -79,6 +79,10 @@ abstract class CI_DB_driver {
protected $_protect_identifiers = TRUE;
protected $_reserved_identifiers = array('*'); // Identifiers that should NOT be escaped
+ // clause and character used for LIKE escape sequences
+ protected $_like_escape_str = " ESCAPE '%s' ";
+ protected $_like_escape_chr = '!';
+
/**
* The syntax to count rows is slightly different across different
* database engines, so this string appears in each driver and is