IIF -> FALSE produces space #8377
Closed
tastyshrimps
announced in
Announcements
Replies: 3 comments 1 reply
|
By design. Resulting data type of |
0 replies
|
If you cast literals to varchar() you will get desired behavior: SQL> SELECT 'X' || IIF(1=2, cast('X' as varchar(1)), cast('' as varchar(1))) || 'X' FROM RDB$DATABASE; SQL> |
1 reply
|
Makes sense. Thank you° |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When an IIF resolves to FALSE, and only then, an empty string concatenation resolves to a space:
=> X X
Firebird 5.0.1
Classic Server
All reactions