]> granicus.if.org Git - postgresql/commit
Restrict some cases in parsing numerics in jsonpath
authorAlexander Korotkov <akorotkov@postgresql.org>
Mon, 1 Apr 2019 15:09:09 +0000 (18:09 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Mon, 1 Apr 2019 15:09:09 +0000 (18:09 +0300)
commit2e643501e5281ad5e0fa626dab1d51c1d38f639a
treee494392865f4c1ba016ba0156f21bd6457a2a467
parent0a02e2ae0236103e641f6570b8135b7ee8a83686
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
src/test/regress/expected/jsonpath.out