Re: [COMMITTERS] 'pgsql/src/backend/parser gram.y'

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)hub(dot)org>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [COMMITTERS] 'pgsql/src/backend/parser gram.y'
Date: 1999-06-07 14:42:07
Message-ID: 199906071442.KAA07021@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Update of /usr/local/cvsroot/pgsql/src/backend/parser
> In directory hub.org:/tmp/cvs-serv80148/parser
>
> Modified Files:
> gram.y
> Log Message:
> Repair recently-introduced error in makeIndexable for LIKE:
> a non-leading % would be put into the >=/<= patterns. Also, repair
> longstanding confusion about whether %% means a literal %%. The SQL92
> doesn't say any such thing, and textlike() knows that, but gram.y didn't.
>
>

Houston, we have a problem. DoMatch has:

case '%':
/* %% is the same as % according to the SQL standard */
/* Advance past all %'s */
while (*p == '%')

Don't we want %% to be %?

--
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

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 1999-06-07 14:43:49 new one
Previous Message Thomas Lockhart 1999-06-07 14:41:21 Re: [COMMITTERS] [WEBMASTER] 'www/html/docs Pg.pm.html faq-dev-english.html faq-english.html faq-hpux.html faq-irix.html faq-linux.html index.html Pg.pm.shtml faq-dev-english.shtml faq-english.shtml faq-hpux.shtml faq-irix.shtml faq-linux.shtml'