Subject | Re: [firebird-support] Re: Problem with FB 2.0 and '=' operator |
---|---|
Author | Ann W. Harrison |
Post date | 2006-12-02T21:43:56Z |
ainpoissee wrote:
equality correctly. The standard states that when strings of unequal
length are compared, the shorter string is implicitly extended with
spaces.
Regards,
Ann
> --- In firebird-support@yahoogroups.com, "William Gonzáles S."There's something more subtle going on .... Firebird handles string
> <wgonzaless@...> wrote:
>
>> But, if I execute this:
>> select * from CONTAINERS where NAME='Ventas'
>>
>> It gives and empty recordset, this happen in all SQL
>> queries with '=' operator.
>
> What's the type of NAME column? If it is CHAR(X) then there may be
> trailing spaces which make it to fail. VARCHAR() type should work.
equality correctly. The standard states that when strings of unequal
length are compared, the shorter string is implicitly extended with
spaces.
Regards,
Ann