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

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

Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
> DoMatch, which implements LIKE clearly thinks %% is %,

Careful: DoMatch thinks %% is a wildcard (ie, same as %), not literal %.

It's hard to say what our users think. If you'd written %% it would
indeed match a % --- but you'd have a problem with it matching other
stuff too. This might or might not be partially masked by the range
conditions inserted by the parser. (But how long have we been doing
that?)

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ole Gjerde 1999-06-07 17:33:58 Re: [HACKERS] Open 6.5 items
Previous Message Ole Gjerde 1999-06-07 17:25:46 RE: [HACKERS] Open 6.5 items