Re: '1 year' = '360 days' ????
От
Doug McNaught
Тема
Re: '1 year' = '360 days' ????
Дата
Msg-id
87ekjpnfb4.fsf@asmodeus.mcnaught.org
Ответ на
Re: '1 year' = '360 days' ???? (Tom Lane)
Список
Дерево обсуждения
'1 year' = '360 days' ???? "Ricardo Perez Lopez" <ricpelo@hotmail.com>
Re: '1 year' = '360 days' ???? Bruno Wolff III <bruno@wolff.to>
Re: '1 year' = '360 days' ???? Tom Lane <tgl@sss.pgh.pa.us>
Re: '1 year' = '360 days' ???? Doug McNaught <doug@mcnaught.org>
Re: '1 year' = '360 days' ???? Tom Lane <tgl@sss.pgh.pa.us>
Re: '1 year' = '360 days' ???? Bruno Wolff III <bruno@wolff.to>
Re: '1 year' = '360 days' ???? Tom Lane <tgl@sss.pgh.pa.us>
Re: '1 year' = '360 days' ???? Bruno Wolff III <bruno@wolff.to>
Re: '1 year' = '360 days' ???? Bruno Wolff III <bruno@wolff.to>
Re: '1 year' = '360 days' ???? Bruno Wolff III <bruno@wolff.to>
Re: '1 year' = '360 days' ???? Tom Lane <tgl@sss.pgh.pa.us>
Re: '1 year' = '360 days' ???? Guy Fraser <guy@incentre.net>
Re: '1 year' = '360 days' ???? Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>
Re: '1 year' = '360 days' ???? Michael Glaesemann <grzm@myrealbox.com>
Re: '1 year' = '360 days' ???? Tom Lane <tgl@sss.pgh.pa.us>
Re: '1 year' = '360 days' ???? Bruno Wolff III <bruno@wolff.to>
Re: '1 year' = '360 days' ???? Guy Fraser <guy@incentre.net>
Re: '1 year' = '360 days' ???? Bruno Wolff III <bruno@wolff.to>
Re: '1 year' = '360 days' ???? Gaetano Mendola <mendola@bigfoot.com>
Re: '1 year' = '360 days' ???? Guy Fraser <guy@incentre.net>
Tom Lane writes:
> "Ricardo Perez Lopez" writes:
>> I have observed that, for PostgreSQL, one year is actually 360 days:
>
>> SELECT '1 year'::timestamp = '360 days'::timestamp;
>
>> ?column?
>> -------------
>> t
>
> Nonsense.
>
> regression=# SELECT '1 year'::timestamp = '360 days'::timestamp;
> ERROR: invalid input syntax for type timestamp: "1 year"
>
> How about telling us what you *really* did, instead of posting faked
> examples?
FWIW:
template1=# select '1 year'::interval = '360 days'::interval;
?column?
----------
t
(1 row)
template1=# select '1 year'::interval = '365 days'::interval;
?column?
----------
f
(1 row)
template1=# select version();
version
---------------------------------------------------------------------
PostgreSQL 7.4.5 on i686-pc-linux-gnu, compiled by GCC egcs-2.91.66
(1 row)
-Doug
В списке pgsql-general по дате отправления