Re: recent ECPG 7.1->7.2 incompatibility ( interval('0sec') = syntax

Christof Petig <christof@petig-baender.de>

From: Christof Petig <christof@petig-baender.de>
To: Michael Meskes <meskes@postgresql.org>
Cc: pgsql-bugs@postgresql.org
Date: 2001-11-02T15:58:00Z
Lists: pgsql-bugs
Michael Meskes wrote:

> > cast ( some_timestamp_var as date), '0sec'::interval   and   "timestamp"
> > (date_var, time_var)  still work but if this is just an oversight, I'd
>
> You mean it works with quotes but not without?

Yes:

exec sql select "interval"('0sec');  // accepted by ecpg
exec sql select interval('0sec');     // not accepted by ecpg (yesterday's
CVS)

Christof

PS:
exec sql select date("timestamp"('now'));
is the same