Re: infinity as a date

From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
To: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: infinity as a date
Date: 2002-12-11 13:14:12
Message-ID: 3DF73A24.2020904@mega-bucks.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Eckermann 2002-12-11 15:09:05 Re: Urgent need of (paid) PostgreSQL support in New
Previous Message Bruno Wolff III 2002-12-11 13:13:45 Re: infinity as a date