Re: ODBC functions in gram.y - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: ODBC functions in gram.y
Date
Msg-id Pine.LNX.4.30.0112091818310.631-100000@peter.localdomain
Whole thread Raw
In response to Re: ODBC functions in gram.y  (Thomas Lockhart <lockhart@fourpalms.org>)
List pgsql-hackers
Thomas Lockhart writes:

> > It's not apparent to me that doing this in the ODBC support is simpler
> > or better than the hack Peter put into gram.y.
>
> ?? We have a long standing design policy to not pollute SQL syntax with
> ODBC cruft.

But that doesn't apply in this case because we're augmenting SQL cruft
with ODBC syntax. ;-)

> And we have existing mechanisms to easily enable that, delegating that
> compatibility layer to the ODBC driver where it belongs.

I'm not a great fan of rewriting SQL code behind the scenes, especially
not when it's a trivial case such as this.  Moreover, developers of ODBC
applications might wish to test their code in, say, psql.  It's not like
we're adding lisp syntax, we're only allowing parentheses after a function
call -- like after all other function calls.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Explicit configuration file
Next
From: mlw
Date:
Subject: Re: Explicit configuration file