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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0a02e2a) | patch
Restrict some cases in parsing numerics in jsonpath
Mon, 1 Apr 2019 15:09:09 +0000 (18:09 +0300)
Mon, 1 Apr 2019 15:09:09 +0000 (18:09 +0300)
commit 2e643501e5281ad5e0fa626dab1d51c1d38f639a
Restrict some cases in parsing numerics in jsonpath

Jsonpath now accepts integers with leading zeroes and floats starting with
a dot. However, SQL standard requires to follow JSON specification, which
doesn't allow none of these cases. Our json[b] datatypes also restrict that.
So, restrict it in jsonpath altogether.

Author: Nikita Glukhov
src/backend/utils/adt/jsonpath_scan.l diff | blob | blame | history
src/test/regress/expected/jsonpath.out diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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