Re: Bug in LIKE operator processing - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug in LIKE operator processing
Date
Msg-id 4483.1043793422@sss.pgh.pa.us
Whole thread Raw
In response to Bug in LIKE operator processing  (Żak, Sławomir <SZak@era.pl>)
List pgsql-bugs
Żak, Sławomir <SZak@era.pl> writes:
> I've found that statement:
>     SELECT * FROM os WHERE 'FreeBSD 4.7-RC'
>         LIKE string_id; (one of string_id's is 'FreeBSD 4.7%')
> doesn't work. No error is reported. It does work in Oracle,

It'd probably work in Postgres too, if you'd used varchar(n) rather than
char(n) for string_id.  As is, the trailing spaces in string_id are
considered significant.
        regards, tom lane


pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Bug in LIKE operator processing
Next
From: Tom Lane
Date:
Subject: Re: No migration path for MONEY