Re: Date represetation bug. Some dates are incorrectly selected

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Date represetation bug. Some dates are incorrectly selected
Дата
Msg-id 7684.983301408@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Date represetation bug. Some dates are incorrectly selected  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
> test=> create table pippo (d date);
> CREATE
> test=> insert into pippo values ('22/05/1977');
> INSERT 629024 1
> test=> insert into pippo values ('28/05/1978');
> INSERT 629025 1
> test=> select * from pippo;
>     d
> ------------
>  21/05/1977
>  27/05/1978
> (2 rows)
> test=> select * from pippo where d = '22/05/1977';
>     d
> ------------
>  21/05/1977
> (1 rows)

Hm. Are these dates daylight-savings-time transition dates in your
timezone?  If so, this is probably a known bug that has been fixed
in more recent Postgres releases.  (RedHat 6.2 ships with Postgres
6.5.something if I recall correctly.  I suggest updating to PG 7.0.3.)

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: postgresql-7.1beta5 with Heimdal-0.3e
Следующее
От: Tom Lane
Дата:
Сообщение: Re: create type and backend terminate