| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера