Re: [HACKERS] Bug in LIKE ? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Bug in LIKE ?
Date
Msg-id 199906071428.KAA05028@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Bug in LIKE ?  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
> >                  if (n->val.val.str[pos] == '\\' ||
> >                      n->val.val.str[pos] == '%')
> >                     pos++;
> > 
> > where 6.5 has:
> > 
> >                  if (n->val.val.str[pos] == '\\' ||
> >                      n->val.val.str[pos+1] == '%')
> >                     pos++;
> > 
> > The first one is right and the second is not.
> > 
> > Unless we fix this, LIKE will be completely busted for any string
> > containing non-leading %.  Shall I ... ?
> 
> Please do...looking through the logs, any idea who changed this one? *gets
> out billy club* *grin*

Me, but months ago.  Put down the club...

--  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: Bruce Momjian
Date:
Subject: Re: [HACKERS] Bug in LIKE ?
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Open 6.5 items