pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Restrict some cases in parsing numerics in jsonpath
Date: Mon, 01 Apr 2019 15:18:12 +0000
Message-ID: <E1hAyhQ-0001He-Bn@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2e643501e5281ad5e0fa626dab1d51c1d38f639a

Modified Files
--------------
src/backend/utils/adt/jsonpath_scan.l  |   6 +-
src/test/regress/expected/jsonpath.out | 117 +++++++++++++++------------------
2 files changed, 55 insertions(+), 68 deletions(-)



Message-ID: <E1hAyhQ-0001He-Bn@gemulon.postgresql.org>
Permalink:  ../E1hAyhQ-0001He-Bn@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hAyhQ-0001He-Bn@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org
  Subject: Re: pgsql: Restrict some cases in parsing numerics in jsonpath
  In-Reply-To: <E1hAyhQ-0001He-Bn@gemulon.postgresql.org>
  References: <E1hAyhQ-0001He-Bn@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox