Re: DATE_PART() BUG? We have an SQL statement that is giving wrong output.

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: DATE_PART() BUG? We have an SQL statement that is giving wrong output.
Дата
Msg-id 3B0E61CF.C53B69FE@fourpalms.org
обсуждение исходный текст
Ответ на DATE_PART() BUG? We have an SQL statement that is giving wrong output.  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
> Short Description
> DATE_PART() BUG?  We have an SQL statement that is giving wrong output.
> tbs=# SELECT version();
> -------------------------------------------------------------
>  PostgreSQL 7.0.2 on i686-pc-linux-gnu, compiled by gcc 2.96
> Here is a simple example:
> SELECT DATE_PART('DAY', CAST('04/1/2001' AS DATE)) as dayofmonth
> ----------
>          31
> Why does April 1st display as May 31st?

This is a known "feature" of 7.0.x (and earlier) on daylight savings
time boundaries. You will see the problem go away if you set your time
zone to GMT. Upgrade to 7.1.x.

                    - Thomas

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

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: DATE_PART() BUG? We have an SQL statement that is giving wrong output.
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Optimizer in 7.1.1 worse thatn 7.0.3