Re: [HACKERS] Bug in LIKE ?
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] Bug in LIKE ? |
Дата | |
Msg-id | 199906071426.KAA04794@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] Bug in LIKE ? (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
> Daniele Orlandi <daniele@orlandi.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 ... ? Yes, please. It was me that introduced the bug. -- 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 по дате отправления: