From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Greg Stark <gsstark(at)mit(dot)edu> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Bug in date arithmetic |
Date: | 2009-08-24 20:35:29 |
Message-ID: | 20090824203529.GL5896@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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<david(at)fetter(dot)org> 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 <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2009-08-24 20:51:31 | Re: 8.5 release timetable, again |
Previous Message | Tom Lane | 2009-08-24 20:19:10 | Re: Bug in date arithmetic |