Re: [HACKERS] Re: [COMMITTERS] 'pgsql/src/backend/parser gram.y' - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Re: [COMMITTERS] 'pgsql/src/backend/parser gram.y'
Date
Msg-id 25331.928776506@sss.pgh.pa.us
Whole thread Raw
In response to Re: [COMMITTERS] 'pgsql/src/backend/parser gram.y'  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] Re: [COMMITTERS] 'pgsql/src/backend/parser gram.y'
List pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.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


pgsql-hackers by date:

Previous
From: Ole Gjerde
Date:
Subject: RE: [HACKERS] Open 6.5 items
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Bug in LIKE ?