Re: BUG #19871: JSON_TABLE evaluates each PASSING argument once per column - a named variable $v gets different valu

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, shihao zhong <zhong950419(at)gmail(dot)com>, "303677365(at)qq(dot)com" <303677365(at)qq(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #19871: JSON_TABLE evaluates each PASSING argument once per column - a named variable $v gets different valu
Date: 2026-11-30 13:17:05
Message-ID: CALdSSPgJK5usc2atdG5z0JA=zCOdWvMdM8BWgbvRjt4HYXbFzA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, 30 Nov 2026 at 15:06, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
>
> On Sun, 2026-11-29 at 23:10 -0700, David G. Johnston wrote:
> > Be nice to know whether the standard we are trying to conform to has a say on the matter.
>
> I don't have access to a sufficiently recent version.

Looking only at the ISO/IEC 9075-2:20xx(en), I do not find a rule that
each PASSING expression is evaluated once.

Best regards,
Kirill Reshke

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message jian he 2026-11-30 13:36:21 Re: BUG #19872: JSON_TABLE: an UNUSED PASSING argument's COLLATE leaks into the output columns (wrong results, persi
Previous Message Ishjaap Singh 2026-11-30 12:39:53 Re: BUG #19957: jsonpath `last` returns the wrong index after a filter containing `exists($x[0])`