Adds JOIN ... USING alias to ruleutils_14.c

Relevant PG commit:
055fee7eb4dcc78e58672aef146334275e1cc40d
pull/5209/head
Halil Ozan Akgul 2021-08-16 16:19:34 +03:00 committed by Sait Talha Nisanci
parent c3f0528607
commit f557bae64c
1 changed files with 4 additions and 0 deletions

View File

@ -7703,6 +7703,10 @@ get_from_clause_item(Node *jtnode, Query *query, deparse_context *context)
appendStringInfoString(buf, quote_identifier(colname));
}
appendStringInfoChar(buf, ')');
if (j->join_using_alias)
appendStringInfo(buf, " AS %s",
quote_identifier(j->join_using_alias->aliasname));
}
else if (j->quals)
{