Quote identifier for XMLTABLE() alias in get_xmltable function

pull/8010/head
Mehmet Yilmaz 2025-06-19 13:50:18 +00:00
parent 0d4e116d82
commit 9525f458d7
1 changed files with 1 additions and 1 deletions

View File

@ -8673,7 +8673,7 @@ get_xmltable(TableFunc *tf, deparse_context *context, bool showimplicit)
if (name != NULL)
{
get_rule_expr(expr, context, showimplicit);
appendStringInfo(buf, " AS %s", name);
appendStringInfo(buf, " AS %s", quote_identifier(name));
}
else
{