mirror of https://github.com/citusdata/citus.git
Remove unused variable isWrapped in PrepareInsertSelectForCitusPlanner function
parent
ac0084eb92
commit
a7ca49c4bd
|
@ -527,8 +527,6 @@ PrepareInsertSelectForCitusPlanner(Query *insertSelectQuery)
|
||||||
RangeTblEntry *selectRte = ExtractSelectRangeTableEntry(insertSelectQuery);
|
RangeTblEntry *selectRte = ExtractSelectRangeTableEntry(insertSelectQuery);
|
||||||
Oid targetRelationId = insertRte->relid;
|
Oid targetRelationId = insertRte->relid;
|
||||||
|
|
||||||
bool isWrapped = false;
|
|
||||||
|
|
||||||
if (selectRte->subquery->setOperations != NULL)
|
if (selectRte->subquery->setOperations != NULL)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -536,7 +534,6 @@ PrepareInsertSelectForCitusPlanner(Query *insertSelectQuery)
|
||||||
* wrapping it in a subquery to have a single target list.
|
* wrapping it in a subquery to have a single target list.
|
||||||
*/
|
*/
|
||||||
selectRte->subquery = WrapSubquery(selectRte->subquery);
|
selectRte->subquery = WrapSubquery(selectRte->subquery);
|
||||||
isWrapped = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this is required for correct deparsing of the query */
|
/* this is required for correct deparsing of the query */
|
||||||
|
|
Loading…
Reference in New Issue