diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-10 13:51:04 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-10 13:51:04 +0200 |
commit | d454f0e413ba6df6494b6c0da4d32fac8a17de1c (patch) | |
tree | e48b74de8d6fc133104adbd2fa4c7f495dd7952d /system/database | |
parent | 9c14f650c86f54f950695e0c628b33a59d4dd10b (diff) |
Add BETWEEN to _has_operator()
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index d6f9f9c17..48f9fb5ac 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -1062,7 +1062,7 @@ abstract class CI_DB_driver { */ protected function _has_operator($str) { - return (bool) preg_match('/(\s|<|>|!|=|IS NULL|IS NOT NULL)/i', trim($str)); + return (bool) preg_match('/(\s|<|>|!|=|IS NULL|IS NOT NULL|BETWEEN)/i', trim($str)); } // -------------------------------------------------------------------- |