mirror of https://github.com/citusdata/citus.git
Revert "Fix XMLTABLE() deparsing to quote namespace names if necessary."
This reverts commit 5bb635ab6c
.
pull/8010/head
parent
0d848debf0
commit
344a079351
|
@ -8663,18 +8663,17 @@ 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);
|
||||||
String *ns_node = lfirst_node(String, lc2);
|
char *name = strVal(lfirst(lc2));
|
||||||
|
|
||||||
if (!first)
|
if (!first)
|
||||||
appendStringInfoString(buf, ", ");
|
appendStringInfoString(buf, ", ");
|
||||||
else
|
else
|
||||||
first = false;
|
first = false;
|
||||||
|
|
||||||
if (ns_node != NULL)
|
if (name != NULL)
|
||||||
{
|
{
|
||||||
get_rule_expr(expr, context, showimplicit);
|
get_rule_expr(expr, context, showimplicit);
|
||||||
appendStringInfo(buf, " AS %s",
|
appendStringInfo(buf, " AS %s", name);
|
||||||
quote_identifier(strVal(ns_node)));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue