Pass constructName to transformJsonValueExpr()

Amit Langote <amitlan@postgresql.org>

Commit: 7825a1b01e400434835253b4ff38dd96d823d454
Author: Amit Langote <amitlan@postgresql.org>
Date: 2023-07-20T08:15:15Z
Releases: 16.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.

Backpatched to 16 from the development branch to keep the code in
sync across branches.

Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/CA+HiwqHu58pO3cJ7rB6ZLwUztVdG1J66xSjDdjfan5uT5NhESw@mail.gmail.com

Files

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

Discussion