Re: A small bug in gram.y - Mailing list pgsql-hackers

From Tom Lane
Subject Re: A small bug in gram.y
Date
Msg-id 6742.1257267498@sss.pgh.pa.us
Whole thread Raw
In response to Re: A small bug in gram.y  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: A small bug in gram.y
List pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> BTW, the corresponding error in the "SIMILAR TO ... ESCAPE ..." syntax is:

> postgres=# SELECT 'aa' SIMILAR TO 123 ESCAPE 'f';
> ERROR:  function pg_catalog.similar_escape(integer, unknown) does not exist
> LINE 1: SELECT 'aa' SIMILAR TO 123 ESCAPE 'f';
>                                    ^

Well, that's complaining specifically about the ESCAPE part of it.
This does expose the implementation detail that we try to build the
similar_escape() call before the overall similar() function call.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: operator exclusion constraints
Next
From: Tom Lane
Date:
Subject: Re: EOL for 7.4?