bug: select date 'infinity' gives error

From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: bug: select date 'infinity' gives error
Date: 2002-11-21 05:59:51
Message-ID: 3DDC7657.8070703@mega-bucks.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

According to the docs at
http://www.postgresql.org/idocs/index.php?datatype-datetime.html,
'infinity' is a valid date input. I quote:

"The following SQL-compatible functions can be used as date or time
input ... 'infinity' [...]"

but I get the following error when trying to set a date to infinity ...

$ psql DB -c "select date 'infinity'"
ERROR: Unrecognized date external representation 'infinity'

whereas it works as as a timestamp ...

$ psql DB -c "select timestamp 'infinity'"
timestamptz
-------------
infinity
(1 row)

Is my syntax wrong?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas T. Thai 2002-11-21 06:09:50 double quotes around table and column names
Previous Message Noah Smith 2002-11-21 05:50:38 encryption