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

From David Fetter
Subject Re: Bug in date arithmetic
Date
Msg-id 20090824182011.GH5896@fetter.org
Whole thread Raw
In response to Re: Bug in date arithmetic  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Bug in date arithmetic  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Aug 24, 2009 at 02:05:38PM -0400, Tom Lane wrote:
> David Fetter <david@fetter.org> writes:
> > On Mon, Aug 24, 2009 at 01:18:46PM -0400, Tom Lane wrote:
> >> Just out of curiosity, what were you *expecting* this to do?
> 
> > The gentleman in IRC was the one who was using the construct.
> 
> Well, what did he think it would do?  If it's a date it's invalid,
> and if it's not a date I'm not sure what he expected...

I apologize for being obtuse.

He expected '-' to subtract seconds, just as '+' added them.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 8.5 release timetable, again
Next
From: Tom Lane
Date:
Subject: Re: hba load error and silent mode