diff options
author | Andrey Andreev <narf@devilix.net> | 2016-10-28 11:50:03 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-10-28 11:50:03 +0200 |
commit | be4bab99fc8165858568e0278492aaebecee68f0 (patch) | |
tree | a8f9aca2c8221d801b6f0066a269ca2a3cfde9cc /system/database | |
parent | dbc025b6c2c9b0b085bb79dc126bc58fb2a8c2a8 (diff) |
Fix #4884
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_query_builder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index 5491b2000..5a86ce50f 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php @@ -679,7 +679,7 @@ abstract class CI_DB_query_builder extends CI_DB_driver { // value appears not to have been set, assign the test to IS NULL $k .= ' IS NULL'; } - elseif (preg_match('/\s*(!?=|<>|IS(?:\s+NOT)?)\s*$/i', $k, $match, PREG_OFFSET_CAPTURE)) + elseif (preg_match('/\s*(!?=|<>|\sIS(?:\s+NOT)?\s)\s*$/i', $k, $match, PREG_OFFSET_CAPTURE)) { $k = substr($k, 0, $match[0][1]).($match[1][0] === '=' ? ' IS NULL' : ' IS NOT NULL'); } |