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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a6888fd) | patch
Refactor jsonpath's compareDatetime()
2019年10月21日 20:04:14 +0000 (23:04 +0300)
2019年10月21日 20:07:07 +0000 (23:07 +0300)
commit 52ad1e659967896ed153185328ffe806d69abcb6
Refactor jsonpath's compareDatetime()

This commit refactors come ridiculous coding in compareDatetime(). Also, it
provides correct cross-datatype comparison even when one of values overflows
during cast. That eliminates dilemma on whether we should suppress overflow
errors during cast.

Reported-by: Tom Lane
Discussion: https://postgr.es/m/32308.1569455803%40sss.pgh.pa.us
Discussion: https://postgr.es/m/a5629d0c-8162-7559-16aa-0c8390d6ba5f%40postgrespro.ru
Author: Nikita Glukhov, Alexander Korotkov
src/backend/utils/adt/date.c diff | blob | blame | history
src/backend/utils/adt/jsonpath_exec.c diff | blob | blame | history
src/backend/utils/adt/timestamp.c diff | blob | blame | history
src/include/utils/date.h diff | blob | blame | history
src/include/utils/timestamp.h diff | blob | blame | history
src/test/regress/expected/jsonb_jsonpath.out diff | blob | blame | history
src/test/regress/sql/jsonb_jsonpath.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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