mirror of https://github.com/citusdata/citus.git
Handle unnamed groups in set_rtable_names by using the group's name
parent
1ea5c8c20a
commit
cb2f4c5aaf
|
@ -795,6 +795,11 @@ set_rtable_names(deparse_namespace *dpns, List *parent_namespaces,
|
||||||
/* Unnamed join has no refname */
|
/* Unnamed join has no refname */
|
||||||
refname = NULL;
|
refname = NULL;
|
||||||
}
|
}
|
||||||
|
else if (rte->rtekind == RTE_GROUP)
|
||||||
|
{
|
||||||
|
/* Use the name of the group */
|
||||||
|
refname = NULL;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Otherwise use whatever the parser assigned */
|
/* Otherwise use whatever the parser assigned */
|
||||||
|
|
Loading…
Reference in New Issue