Re: Bug in date arithmetic - Mailing list pgsql-hackers

From David Fetter
Subject Re: Bug in date arithmetic
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Bug in date arithmetic  (Greg Stark <[email protected]>)
List pgsql-hackers
On Mon, Aug 24, 2009 at 09:13:09PM +0100, Greg Stark wrote:
> On Mon, Aug 24, 2009 at 8:27 PM, David Fetter<[email protected]> wrote:
> > I'm thinking that the unknown literal here should just cause an
> > error in the case of '+'.  Same with '-', for what it's worth.
> 
> That would make a lot of people very unhappy. They expect things
> like
> 
> select date + '1 year'
> 
> to just work.

We broke a lot more things than this when we got rid of implicit casts
to TEXT. :)

Cheers,
David.
-- 
David Fetter <[email protected]> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: [email protected]

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug in date arithmetic
Next
From: Bruce Momjian
Date:
Subject: Re: 8.5 release timetable, again