Possible Date-Time Bug????

Поиск
Список
Период
Сортировка
От Andre Schubert
Тема Possible Date-Time Bug????
Дата
Msg-id 3BF5060B.3114EC2F@geyer.kabeljournal.de
обсуждение исходный текст
Список pgsql-admin
Hi all,

i think i found a bug in postgresql date/datetime objects.

examples:

select date_trunc('month',date('2002-03-01')+timespan('1
month'))-timespan('24 hours');
returns 2002-03-30 23:00:00+01

select date_trunc('month',date('2002-03-01')+timespan('1
month'))-timespan('23 hours');
returns 2002-03-31 00:00:00+01

select date_trunc('month',date('2001-03-01')+timespan('1
month'))-timespan('24 hours');
returns 2001-03-31 00:00:00+02

select date_trunc('month',date('2001-03-01')+timespan('1
month'))-timespan('23 hours');
returns 2001-03-31 01:00:00+02

PostgreSQL 7.1.2 is on a Linux-Box with Immunix RedHat 6.2.

thanks as

В списке pgsql-admin по дате отправления:

Предыдущее
От: Radoslaw Stachowiak
Дата:
Сообщение: strange behaviour of gettimeofday() and pg_dump
Следующее
От: "Jeff Boes"
Дата:
Сообщение: Upgrading 7.1.2 to .3