Fix collation of JSON_TABLE output columns
commit21724558650a7387ffbc2b0da53d6314389419bb
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 10 Jun 2022 04:05:08 +0000 (10 06:05 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 10 Jun 2022 04:05:08 +0000 (10 06:05 +0200)
treeb6f1c0d50c459aefc4ae02898573f63650961995
parent4a8a5dd7f59cd8dd9969cef1969cb5f7c5124eec
Fix collation of JSON_TABLE output columns

The output columns of JSON_TABLE should have the collations of their
data type.  The existing implementation sets the default collation if
the type is collatable.

Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://www.postgresql.org/message-id/flat/9d75ce67-0121-5050-5bec-bf5009db55ce%40enterprisedb.com
src/backend/parser/parse_jsontable.c