diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-02-28 12:23:38 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-02-28 12:23:38 +0100 |
commit | 08c7c62b57b0d6d8f126e8629b8e8da71bd9636f (patch) | |
tree | 4d5efe4425a2e31da0178b642ba7658803ecdc11 /system/database | |
parent | bbd6739b6edd9fd98f75ed551e5095d0369c20b4 (diff) |
Fix escape_like_str()
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/drivers/oci8/oci8_driver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/oci8/oci8_driver.php b/system/database/drivers/oci8/oci8_driver.php index 3c70ccd9f..007e56a0b 100644 --- a/system/database/drivers/oci8/oci8_driver.php +++ b/system/database/drivers/oci8/oci8_driver.php @@ -477,8 +477,8 @@ class CI_DB_oci8_driver extends CI_DB { // escape LIKE condition wildcards if ($like === TRUE) { - return str_replace(array('%', '_', $this->_like_escape_chr), - array($this->_like_escape_chr.'%', $this->_like_escape_chr.'_', $this->_like_escape_chr.$this->_like_escape_chr), + return str_replace(array($this->_like_escape_chr.$this->_like_escape_chr, '%', '_'), + array($this->_like_escape_chr.$this->_like_escape_chr, $this->_like_escape_chr.'%', $this->_like_escape_chr.'_'), $str); } |