Pass constructName to transformJsonValueExpr()

Amit Langote <amitlan@postgresql.org>

Commit: 785480c9533d9a905410c1a52f857a431daec37c
Author: Amit Langote <amitlan@postgresql.org>
Date: 2023-07-13T03:13:49Z
Releases: 17.0
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@alvh.no-ip.org>
Discussion: https://postgr.es/m/CA+HiwqE4XTdfb1nW=Ojoy_tQSRhYt-q_kb6i5d4xcKyrLC1Nbg@mail.gmail.com

Files

PathChange+/−
src/backend/parser/parse_expr.c modified +13 −11

Discussion