Fix collation of expressions in GRAPH_TABLE COLUMNS clause GRAPH_TABLE clause is converted into a rangetable entry, which is ignored by assign_query_collations(). Hence we assign collations while transforming its parts. But expressions in COLUMNS clause missed that treatment, so fix that.
While at it, also add comments about collation assignment to the parts of GRAPH_TABLE clause, and also fix a small grammar issue. Reported-by: Satyanarayana Narlapuram <[email protected]> Author: Satyanarayana Narlapuram <[email protected]> Author: Ashutosh Bapat <[email protected]> Discussion: https://www.postgresql.org/message-id/cahg+qdc4aaiufysgrwmmpmmrtptq66sghcrpfbwjfzmqnag...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ac3bcc041c5cc2b7ce522d4ce6e6c4653f1263ea Modified Files -------------- src/backend/parser/parse_clause.c | 6 ++++++ src/backend/parser/parse_graphtable.c | 12 +++++++++++- src/test/regress/expected/graph_table.out | 8 ++++---- src/test/regress/sql/graph_table.sql | 4 ++-- 4 files changed, 23 insertions(+), 7 deletions(-)
