mirror of https://github.com/citusdata/citus.git
refactor extract distributed insert values rte (#3287)
parent
7447dfe156
commit
420e21919b
|
@ -2642,7 +2642,6 @@ RangeTblEntry *
|
||||||
ExtractDistributedInsertValuesRTE(Query *query)
|
ExtractDistributedInsertValuesRTE(Query *query)
|
||||||
{
|
{
|
||||||
ListCell *rteCell = NULL;
|
ListCell *rteCell = NULL;
|
||||||
RangeTblEntry *valuesRTE = NULL;
|
|
||||||
|
|
||||||
if (query->commandType != CMD_INSERT)
|
if (query->commandType != CMD_INSERT)
|
||||||
{
|
{
|
||||||
|
@ -2655,12 +2654,10 @@ ExtractDistributedInsertValuesRTE(Query *query)
|
||||||
|
|
||||||
if (rte->rtekind == RTE_VALUES)
|
if (rte->rtekind == RTE_VALUES)
|
||||||
{
|
{
|
||||||
valuesRTE = rte;
|
return rte;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
return valuesRTE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue