summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmrul Easir <emrulmax2@gmail.com>2019-03-29 14:33:46 +0100
committerGitHub <noreply@github.com>2019-03-29 14:33:46 +0100
commit219d3b17d6a4e03d60e3441174d8e443be1f0551 (patch)
treedba8ad6d1606fd96d4e48fb0096a193de78eeebf
parent61db61473df738e2cdb9ec28727816b450a84b53 (diff)
reset _has_operator() & added to _get_operator()
Removed the NOT BETWEEN from _has_operator() method. 'NOT BETWEEN' only needs to apply in _get_operator() method. Otherwise, query error still remaining.
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 91777ce3a..204dce528 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1476,7 +1476,7 @@ abstract class CI_DB_driver {
*/
protected function _has_operator($str)
{
- return (bool) preg_match('/(<|>|!|=|\sIS NULL|\sIS NOT NULL|\sEXISTS|\sBETWEEN|\sNOT BETWEEN|\sLIKE|\sIN\s*\(|\s)/i', trim($str));
+ return (bool) preg_match('/(<|>|!|=|\sIS NULL|\sIS NOT NULL|\sEXISTS|\sBETWEEN|\sLIKE|\sIN\s*\(|\s)/i', trim($str));
}
// --------------------------------------------------------------------