Pass constructName to transformJsonValueExpr()
authorAmit Langote <amitlan@postgresql.org>
Thu, 20 Jul 2023 07:23:49 +0000 (16:23 +0900)
committerAmit Langote <amitlan@postgresql.org>
Thu, 20 Jul 2023 08:15:15 +0000 (17:15 +0900)
commit7825a1b01e400434835253b4ff38dd96d823d454
tree0622be07bce24988ed4ff61216908fa76c870bdb
parent0a1d2a7df852f16c452eef8a83003943125162c7
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
src/backend/parser/parse_expr.c