pgsql: Accept "+infinity" in date and timestamp[tz] input. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Accept "+infinity" in date and timestamp[tz] input.
Date
Msg-id E1pC3oe-001YvF-5I@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Accept "+infinity" in date and timestamp[tz] input.

The float and numeric types accept this variant spelling of
"infinity", so it seems like the datetime types should too.

Vik Fearing, some cosmetic mods by me

Discussion: https://postgr.es/m/d0bef637-2dbd-0a5d-e539-48243b6f6c5e@postgresfriends.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2ceea5adb02603ef52579b568ca2c5aebed87358

Modified Files
--------------
src/backend/utils/adt/datetime.c          | 1 +
src/test/regress/expected/date.out        | 6 ++++++
src/test/regress/expected/timestamp.out   | 6 ++++++
src/test/regress/expected/timestamptz.out | 6 ++++++
src/test/regress/sql/date.sql             | 2 ++
src/test/regress/sql/timestamp.sql        | 2 ++
src/test/regress/sql/timestamptz.sql      | 2 ++
7 files changed, 25 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: In plpgsql, don't preassign portal names to bound cursor variabl
Next
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Re-order Table 28.2 "Collected Statistics Views"