JSON path decimal literal syntax - Mailing list pgsql-hackers

From Peter Eisentraut
Subject JSON path decimal literal syntax
Date
Msg-id 50a828cc-0a00-7791-7883-2ed06dfb2dbb@enterprisedb.com
Whole thread Raw
Responses Re: JSON path decimal literal syntax
List pgsql-hackers
I noticed that the JSON path lexer does not support the decimal literal 
syntax forms

.1
1.

(that is, there are no digits before or after the decimal point).  This 
is allowed by the relevant ECMAScript standard 
(https://262.ecma-international.org/5.1/#sec-7.8.3) and of course SQL 
allows it as well.

Is there a reason for this?  I didn't find any code comments or 
documentation about this.

Attached are patches that would enable this.  As you can see, a bunch of 
test cases are affected.
Attachment

pgsql-hackers by date:

Previous
From: Christoph Berg
Date:
Subject: Re: pgsql: pg_upgrade: Preserve relfilenodes and tablespace OIDs.
Next
From: Amit Kapila
Date:
Subject: Re: logical replication empty transactions