Re: Bug in LIKE operator processing

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Żak, Sławomir <SZak(at)era(dot)pl>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Bug in LIKE operator processing
Date: 2003-01-28 20:26:06
Message-ID: 20030128122421.B96669-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On Mon, 27 Jan 2003, [iso-8859-2] ak, Sawomir wrote:

> 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%')

> string_id | character(32) |

character(32) has space padding which is probably getting in your way.
I'd suggest moving to varchar(32).

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michiel Lange 2003-01-28 21:27:37 Bug with usernames that are only numbers
Previous Message Peter Eisentraut 2003-01-28 19:24:13 Re: No migration path for MONEY