Re: Bug in date arithmetic

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Bug in date arithmetic
Дата
Msg-id 20090824182011.GH5896@fetter.org
обсуждение исходный текст
Ответ на Re: Bug in date arithmetic  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Bug in date arithmetic
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 8.5 release timetable, again
Следующее
От: Tom Lane
Дата:
Сообщение: Re: hba load error and silent mode