Regression: "Invalid usage of boolean expression" when use "BETWEEN" and "IS"
operators
---------------------------------------------------------------------------------------
Key: CORE-5423
URL: http://tracker.firebirdsql.org/browse/CORE-5423
Project: Firebird Core
Issue Type: Bug
Affects Versions: 4.0 Initial
Reporter: Pavel Zotov
Run:
SQL> select 1 from rdb$database where 1 >= 0 and 1 <= 2 and null is null ;
SQL> select 1 from rdb$database where 1 in (0,1,2) and null is null ;
SQL> select 1 from rdb$database where 1 between 0 and 2 and null is null ;
On 4.0.0.468 third statement will raise:
Statement failed, SQLSTATE = 22000
Dynamic SQL Error
-SQL error code = -104
-Invalid usage of boolean expression
Moreover, reference to unknown column like this:
SQL> select 1 from rdb$database where 1 between 0 and 2 and foo is not null;
-- will raise the same:
Statement failed, SQLSTATE = 22000
Dynamic SQL Error
-SQL error code = -104
-Invalid usage of boolean expression
(instead of "Statement failed, SQLSTATE = 42S22 // Dynamic SQL Error // -SQL
error code = -206 // -Column unknown // -FOO")
No such problem on 4.0.0.463.
I suppose that this can be related to recent fix of CORE-5408 (Result of
boolean expression can not be concatenated with string literal) but not sure,
thus create new ticket.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel