refactor extract distributed insert values rte (#3287)

pull/3294/head
SaitTalhaNisanci 2019-12-12 23:47:44 +03:00 committed by GitHub
parent 7447dfe156
commit 420e21919b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -2642,7 +2642,6 @@ RangeTblEntry *
ExtractDistributedInsertValuesRTE(Query *query)
{
ListCell *rteCell = NULL;
RangeTblEntry *valuesRTE = NULL;
if (query->commandType != CMD_INSERT)
{
@ -2655,12 +2654,10 @@ ExtractDistributedInsertValuesRTE(Query *query)
if (rte->rtekind == RTE_VALUES)
{
valuesRTE = rte;
break;
return rte;
}
}
return valuesRTE;
return NULL;
}