Re: ODBC functions in gram.y

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ODBC functions in gram.y
Date: 2001-12-10 13:09:19
Message-ID: Pine.LNX.4.30.0112091818310.631-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message mlw 2001-12-10 13:31:59 Re: Explicit configuration file
Previous Message Peter Eisentraut 2001-12-10 13:08:07 Re: Third call for platform testing