| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Accept "+infinity" in date and timestamp[tz] input. |
| Date: | 2023-01-01 19:16:16 |
| Message-ID: | E1pC3oe-001YvF-5I@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2023-01-02 08:05:13 | pgsql: doc: Re-order Table 28.2 "Collected Statistics Views" |
| Previous Message | Tom Lane | 2023-01-01 18:22:48 | pgsql: In plpgsql, don't preassign portal names to bound cursor variabl |