git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a6b1f53) | patch
Fix make_timestamp[tz] to accept negative years as meaning BC.
2020年9月29日 17:48:06 +0000 (13:48 -0400)
2020年9月29日 17:48:06 +0000 (13:48 -0400)
commit a094c8ff53523e88ff9dd28ad467618039e27b58
Fix make_timestamp[tz] to accept negative years as meaning BC.

Previously we threw an error. But make_date already allowed the case,
so it is inconsistent as well as unhelpful for make_timestamp not to.

Both functions continue to reject year zero.

Code and test fixes by Peter Eisentraut, doc changes by me

Discussion: https://postgr.es/m/13c0992c-f15a-a0ca-d839-91d3efd965d9@2ndquadrant.com
doc/src/sgml/func.sgml diff | blob | blame | history
src/backend/utils/adt/timestamp.c diff | blob | blame | history
src/test/regress/expected/date.out diff | blob | blame | history
src/test/regress/expected/timestamp.out diff | blob | blame | history
src/test/regress/sql/date.sql diff | blob | blame | history
src/test/regress/sql/timestamp.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /