Re: ODBC functions in gram.y

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: lockhart(at)fourpalms(dot)org
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ODBC functions in gram.y
Date: 2001-12-07 17:20:45
Message-ID: 819.1007745645@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Lockhart <lockhart(at)fourpalms(dot)org> writes:
> I'm looking at gram.y to munge the precision support for date/time per
> recent discussions, and am noticing once again the extensions added to
> support ODBC by allowing empty parens after some SQL-defined "constants"
> (e.g. CURRENT_TIMESTAMP, CURRENT_USER, etc etc). Currently, these are
> done by replicating code and by altering the allowed grammar, and it
> happens to be the same area of code I need to be looking at.

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. But more importantly,
at this point in the 7.2 cycle we ought not be making any changes that
are not *essential* bug fixes. If you want to reorganize the support
for CURRENT_TIMESTAMP() like that, let's leave it for 7.3.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2001-12-07 17:26:47 Re: Remote connections?
Previous Message Thomas Lockhart 2001-12-07 17:12:53 Re: Third call for platform testing