pgsql: Pass constructName to transformJsonValueExpr()

From: Amit Langote <amitlan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Pass constructName to transformJsonValueExpr()
Date: 2023-07-13 03:33:07
Message-ID: E1qJn4l-00072J-83@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Pass constructName to transformJsonValueExpr()

This allows it to pass to coerce_to_specific_type() the actual name
corresponding to the specific JSON_* function expression being
transformed, instead of the currently hardcoded string.

Reviewed-by: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Discussion: https://postgr.es/m/CA+HiwqE4XTdfb1nW=Ojoy_tQSRhYt-q_kb6i5d4xcKyrLC1Nbg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/785480c9533d9a905410c1a52f857a431daec37c

Modified Files
--------------
src/backend/parser/parse_expr.c | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2023-07-13 03:35:28 pgsql: Teach in-tree getopt_long() to move non-options to the end of ar
Previous Message Michael Paquier 2023-07-13 00:09:18 pgsql: Simplify some conditions related to [LW]Lock in generate-wait_ev