From 76c83a5ce1b37fbea7334d0e3318fd08763799ec Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 11 Aug 2020 11:12:39 +0900 Subject: [PATCH] Fix IS NULL / IS NOT NULL conditions being omitted from XML queries --- common/framework/parsers/dbquery/variablebase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/parsers/dbquery/variablebase.php b/common/framework/parsers/dbquery/variablebase.php index 002769d19..4e25ba2d5 100644 --- a/common/framework/parsers/dbquery/variablebase.php +++ b/common/framework/parsers/dbquery/variablebase.php @@ -75,7 +75,7 @@ class VariableBase { throw new \Rhymix\Framework\Exceptions\QueryError('Variable ' . $this->var . ' for column ' . $this->column . ' is not set'); } - else + elseif (!in_array($this->operation, ['null', 'notnull', 'not_null'])) { return [$where, $params]; }