I see strange result when executing this query
update sd_invodt set line_type=iif(is_promo=1, 'campaign', 'item')
The value in line_type field will be "item "
. There are whitespaces in value.
But when I execute this query
update sd_invodt set line_type='item'
I don't get white spaces.
Now I have to use trim as workaround
update sd_invodt set line_type=trim(iif(is_promo=1, 'campaign', 'item'))
I use latest firebird 2.5. Line_type is a varchar(15).
Is this bug in Firebird?
EDIT
I have tested using new database, and the problem persists.