Result of boolean expression can not be concatenated with string literal
------------------------------------------------------------------------
Key: CORE-5408
URL: http://tracker.firebirdsql.org/browse/CORE-5408
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 3.0.1, 4.0 Initial
Reporter: Pavel Zotov
SQL> select true || 'aaa' from rdb$database;
CONCATENATION
=============
TRUEaaa
(OK, expected)
SQL> select (true = true)|| 'aaa' from rdb$database;
Statement failed, SQLSTATE = 42000
Dynamic SQL Error
-SQL error code = -104
-Token unknown - line 1, column 21
-||
SQL> select (true is true)|| 'aaa' from rdb$database;
Statement failed, SQLSTATE = 42000
Dynamic SQL Error
-SQL error code = -104
-Token unknown - line 1, column 22
-||
SQL> select 'aaa' || true from rdb$database;
CONCATENATION
=============
aaaTRUE
(OK, expected; note that here order of boolean and string is changed comparing
with sample #1)
SQL> select 'aaa' || (true = true) from rdb$database;
Statement failed, SQLSTATE = 42000
Dynamic SQL Error
-SQL error code = -104
-Token unknown - line 1, column 23
-=
SQL> select 'aaa' || (true is true) from rdb$database;
Statement failed, SQLSTATE = 42000
Dynamic SQL Error
-SQL error code = -104
-Token unknown - line 1, column 23
-is
--
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
------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel