Re: insert of date is wrong

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: insert of date is wrong
Дата
Msg-id 20311.996043964@sss.pgh.pa.us
обсуждение исходный текст
Ответ на insert of date is wrong  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
> when I insert the date '1914/01/01' in a column with the 'date' format, the table returns the value '1913/12/31'

Not for me:

regression=# create table foo (f1 date);

CREATE
regression=#
regression=# insert into foo values ('1914/01/01');
INSERT 158325 1
regression=# select * from foo;

     f1
------------
 1914-01-01
(1 row)

The usual questions ensue: what PG version are you running, on what
platform, with what timezone and datestyle settings?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: real or float4 '=' operator is broken in 7.1.2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump doesn't handle CREATE FUNCTIONs well