From: | The Hermit Hacker <scrappy(at)hub(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Daniele Orlandi <daniele(at)orlandi(dot)com>, pgsql-hackers(at)hub(dot)org |
Subject: | Re: [HACKERS] Bug in LIKE ? |
Date: | 1999-06-07 13:50:47 |
Message-ID: | Pine.BSF.4.05.9906071050140.413-100000@thelab.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, 7 Jun 1999, Tom Lane wrote:
> Daniele Orlandi <daniele(at)orlandi(dot)com> writes:
> > Uhm.... I think the problem is a little worse:
>
> It's a real bug, and I see the problem: someone changed the handling of
> LIKE prefixes in gram.y, without understanding quite what they were
> doing. 6.4.2 has:
>
> 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*
Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org
From | Date | Subject | |
---|---|---|---|
Next Message | James Thompson | 1999-06-07 13:54:26 | Re: [HACKERS] PostgreSQL History(Parody) |
Previous Message | Tom Lane | 1999-06-07 13:44:07 | Re: [HACKERS] Bug in LIKE ? |