Re: BUG #19958: jsonpath: a word directly followed by a /* comment */ is silently dropped, so strict becomes lax

From: Ishjaap Singh <ishjaap(dot)singh07(at)gmail(dot)com>
To: Zejiang Zhang <rushsky518(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, james(dot)moore(at)g5labs(dot)ai
Subject: Re: BUG #19958: jsonpath: a word directly followed by a /* comment */ is silently dropped, so strict becomes lax
Date: 2026-12-03 07:26:06
Message-ID: CA+Y2BmdOASoOtoDxQKskEijHNWuPm1+AGBNkhMdMedM=cf=ZDw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Zhang,

Thanks for testing it. I took both suggestions in v2, attached:

- The lax test is now 'strict/* comment */$.a', so all seven cases
fail without the fix.
- The <xnq>({special}|\") rule has a comment saying it also handles a
comment right after the word.

make check passes on master and with the same changes on 15 to 19.

Regards,
Ishjaap Singh

Attachment Content-Type Size
v2-0001-Don-t-drop-a-jsonpath-word-directly-followed-by-a.patch application/octet-stream 3.6 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ishjaap Singh 2026-12-03 08:34:14 Re: BUG #19835: view with GROUP BY ROLLUP over duplicate columns changes results after dump/restore
Previous Message Kirill Reshke 2026-12-03 07:05:27 Re: BUG #19967: ecpg crashes after "cursor does not exist" on FETCH or MOVE