Re: infinity as a date

Поиск
Список
Период
Сортировка
От Jean-Christian Imbeault
Тема Re: infinity as a date
Дата
Msg-id 3DF73A24.2020904@mega-bucks.co.jp
обсуждение исходный текст
Ответ на infinity as a date  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Список pgsql-general
Bruno Wolff III wrote:
 >
 > Dates cannot have a value of 'infinity'. Either you can store timestamps
 > instead of dates or use another column to indicate to indicate the date
 > is infinite and have your tests check that column as well as the date
 > column.

Ok, so why does postgres let me get away with:

JC=# create table test(a date);
CREATE TABLE
JC=# insert into test values('infinity'::timestamp);
INSERT 1030323 1

If dates cannot hvae a value of infinity why can I insert 'infinity'
into a date field?

Should not postgres throw an error?

Jc




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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: infinity as a date
Следующее
От: Jeff Eckermann
Дата:
Сообщение: Re: Urgent need of (paid) PostgreSQL support in New