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:
parent
4d81fc58b5
commit
23585141e8
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user