mirror of https://github.com/citusdata/citus.git
Fix XMLTABLE() deparsing to quote namespace names if necessary.
d673eefd410cd7f5f95e418990146189f44811afm3hm3t/pg18_dev_relation_oid_0
parent
0280fd7272
commit
5bb635ab6c
|
@ -8382,17 +8382,18 @@ get_xmltable(TableFunc *tf, deparse_context *context, bool showimplicit)
|
||||||
forboth(lc1, tf->ns_uris, lc2, tf->ns_names)
|
forboth(lc1, tf->ns_uris, lc2, tf->ns_names)
|
||||||
{
|
{
|
||||||
Node *expr = (Node *) lfirst(lc1);
|
Node *expr = (Node *) lfirst(lc1);
|
||||||
char *name = strVal(lfirst(lc2));
|
String *ns_node = lfirst_node(String, lc2);
|
||||||
|
|
||||||
if (!first)
|
if (!first)
|
||||||
appendStringInfoString(buf, ", ");
|
appendStringInfoString(buf, ", ");
|
||||||
else
|
else
|
||||||
first = false;
|
first = false;
|
||||||
|
|
||||||
if (name != NULL)
|
if (ns_node != NULL)
|
||||||
{
|
{
|
||||||
get_rule_expr(expr, context, showimplicit);
|
get_rule_expr(expr, context, showimplicit);
|
||||||
appendStringInfo(buf, " AS %s", name);
|
appendStringInfo(buf, " AS %s",
|
||||||
|
quote_identifier(strVal(ns_node)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue