summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-10 13:51:04 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-10 13:51:04 +0200
commitd454f0e413ba6df6494b6c0da4d32fac8a17de1c (patch)
treee48b74de8d6fc133104adbd2fa4c7f495dd7952d
parent9c14f650c86f54f950695e0c628b33a59d4dd10b (diff)
Add BETWEEN to _has_operator()
-rw-r--r--system/database/DB_driver.php2
-rw-r--r--user_guide_src/source/changelog.rst1
2 files changed, 2 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));
}
// --------------------------------------------------------------------
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index 5b2f59e7e..027163db7 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -246,6 +246,7 @@ Bug fixes for 3.0
- Fixed a bug (#706) - SQLSRV/MSSSQL didn't escape field names.
- Fixed a bug (#1452) - protect_identifiers() didn't properly detect identifiers with spaces in their names.
- Fixed a bug where protect_identifiers() ignored it's extra arguments when the value passed to it is an array.
+- Fixed a bug where _has_operator() didn't detect BETWEEN.
Version 2.1.1
=============