Subject Re: [firebird-support] Strange SIMILAR TO result
Author liviuslivius
Ach now it is clear.

All work ok. 
You got false for char(5) because it work the same way as it is working for LIKE with char. 

Try
Select cast('ABCD' as char(5)) like 'ABCD' from rdb$database



Regards,
Karol Bieniaszewski