pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: SQL JSON path enhanced numeric literals
Date: Sun, 05 Mar 2023 14:34:11 +0000
Message-ID: <E1pYpRC-00229S-Pm@gemulon.postgresql.org> (raw)

SQL JSON path enhanced numeric literals

Add support for non-decimal integer literals and underscores in
numeric literals to SQL JSON path language.  This follows the rules of
ECMAScript, as referred to by the SQL standard.

Internally, all the numeric literal parsing of jsonpath goes through
numeric_in, which already supports all this, so this patch is just a
bit of lexer work and some tests and documentation.

Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/b11b25bb-6ec1-d42f-cedd-311eae59e1fb@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/102a5c164a91d717632f3a24f1289a5fa4861973

Modified Files
--------------
doc/src/sgml/json.sgml                 |  12 +++
src/backend/catalog/sql_features.txt   |   1 +
src/backend/utils/adt/jsonpath_scan.l  |  60 +++++++++---
src/test/regress/expected/jsonpath.out | 162 +++++++++++++++++++++++++++++++++
src/test/regress/sql/jsonpath.sql      |  50 ++++++++++
5 files changed, 271 insertions(+), 14 deletions(-)



Message-ID: <E1pYpRC-00229S-Pm@gemulon.postgresql.org>
Permalink:  ../E1pYpRC-00229S-Pm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pYpRC-00229S-Pm@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: peter@eisentraut.org
  Subject: Re: pgsql: SQL JSON path enhanced numeric literals
  In-Reply-To: <E1pYpRC-00229S-Pm@gemulon.postgresql.org>
  References: <E1pYpRC-00229S-Pm@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