Re: [HACKERS] I don't like LIKE - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] I don't like LIKE
Date
Msg-id 199906081708.NAA26802@candle.pha.pa.us
Whole thread Raw
In response to I don't like LIKE  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
List pgsql-hackers
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> There seems to be a problem with MakeIndexable(), though I haven't
> confirmed that the problem lies there:
> 
> postgres=> select * from t1 where i like '2';
> ERROR:  pg_atoi: error in "2_": can't parse "_"
> 
> istm that this query should behave itself, or at least fail in some
> other way :(
> 
> I'll guess that, even though there isn't a wildcard to pattern match,
> MakeIndexable() is adding a trailing \377 to the string?

Please post example.  Works here:select * from pg_class where rename like '2';

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Don Baccus
Date:
Subject: Re: [HACKERS] 6.6 items
Next
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] 6.6 items