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

From Christof Petig
Subject Re: recent ECPG 7.1->7.2 incompatibility ( interval('0sec') = syntax
Date
Msg-id 3BE2C287.8690142A@petig-baender.de
Whole thread Raw
In response to recent ECPG 7.1->7.2 incompatibility ( interval('0sec') = syntax error )  (Christof Petig <christof@petig-baender.de>)
Responses Re: recent ECPG 7.1->7.2 incompatibility ( interval('0sec') = syntax error )
List 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

pgsql-bugs by date:

Previous
From: Christof Petig
Date:
Subject: recent ECPG 7.1->7.2 incompatibility ( interval('0sec') = syntax error )
Next
From: Tom Lane
Date:
Subject: Re: Bug #491: ERROR: RelationClearRelation: relation using JDBC