Restrict some cases in parsing numerics in jsonpath
Alexander Korotkov <akorotkov@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonpath_scan.l | modified | +3 −3 |
| src/test/regress/expected/jsonpath.out | modified | +52 −65 |