Re: [HACKERS] Bug in LIKE ?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Daniele Orlandi <daniele(at)orlandi(dot)com>, pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] Bug in LIKE ?
Date: 1999-06-07 14:28:52
Message-ID: 199906071428.KAA05028@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-06-07 14:30:15 Re: [HACKERS] Open 6.5 items
Previous Message Bruce Momjian 1999-06-07 14:26:30 Re: [HACKERS] Bug in LIKE ?