8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 16:03:02 +01:00

Fixed CORE-5986 - Incorrect evaluation of NULL IS [NOT] {FALSE | TRUE}.

This commit is contained in:
Adriano dos Santos Fernandes 2019-01-19 17:24:05 -02:00
parent 4d81fc58b5
commit 23585141e8

View File

@ -6677,13 +6677,13 @@ boolean_value_expression
{ $$ = $2; } { $$ = $2; }
| value IS boolean_literal | value IS boolean_literal
{ {
ComparativeBoolNode* node = newNode<ComparativeBoolNode>(blr_eql, $1, $3); ComparativeBoolNode* node = newNode<ComparativeBoolNode>(blr_equiv, $1, $3);
node->dsqlCheckBoolean = true; node->dsqlCheckBoolean = true;
$$ = node; $$ = node;
} }
| value IS NOT boolean_literal | value IS NOT boolean_literal
{ {
ComparativeBoolNode* node = newNode<ComparativeBoolNode>(blr_eql, $1, $4); ComparativeBoolNode* node = newNode<ComparativeBoolNode>(blr_equiv, $1, $4);
node->dsqlCheckBoolean = true; node->dsqlCheckBoolean = true;
$$ = newNode<NotBoolNode>(node); $$ = newNode<NotBoolNode>(node);
} }