diff options
-rw-r--r-- | src/Components/Expression.php | 1 | ||||
-rw-r--r-- | src/Components/ExpressionArray.php | 1 | ||||
-rw-r--r-- | src/Statement.php | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/src/Components/Expression.php b/src/Components/Expression.php index 4c2c04c..d91d902 100644 --- a/src/Components/Expression.php +++ b/src/Components/Expression.php @@ -186,6 +186,7 @@ class Expression extends Component if (($token->type === Token::TYPE_KEYWORD) && ($token->flags & Token::FLAG_KEYWORD_RESERVED) && ($token->value !== 'DUAL') + && ($token->value !== 'NULL') ) { // Keywords may be found only between brackets. if ($brackets === 0) { diff --git a/src/Components/ExpressionArray.php b/src/Components/ExpressionArray.php index b05ccc1..f108ad8 100644 --- a/src/Components/ExpressionArray.php +++ b/src/Components/ExpressionArray.php @@ -72,6 +72,7 @@ class ExpressionArray extends Component && ($token->flags & Token::FLAG_KEYWORD_RESERVED) && ((~$token->flags & Token::FLAG_KEYWORD_FUNCTION)) && ($token->value !== 'DUAL') + && ($token->value !== 'NULL') ) { // No keyword is expected. break; diff --git a/src/Statement.php b/src/Statement.php index 472d7de..eb9f3cb 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -170,7 +170,6 @@ abstract class Statement if (!empty($built[$field])) { continue; } - $built[$field] = true; } |