Commit 08b785fd by Qiang Xue

Merge pull request #3153 from gonimar/patch-14

Fix BETWEEN and NOT BETWEEN conditions.
parents f210ec82 322e9e23
...@@ -266,7 +266,7 @@ trait QueryTrait ...@@ -266,7 +266,7 @@ trait QueryTrait
case 'BETWEEN': case 'BETWEEN':
case 'NOT BETWEEN': case 'NOT BETWEEN':
if (array_key_exists(1, $condition) && array_key_exists(2, $condition)) { if (array_key_exists(1, $condition) && array_key_exists(2, $condition)) {
if ($this->isEmpty($condition[2]) || $this->isEmpty($condition[3])) { if ($this->isEmpty($condition[1]) || $this->isEmpty($condition[2])) {
return []; return [];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment