Remove unused variable isWrapped in PrepareInsertSelectForCitusPlanner function

mehmet/issue_7784
Mehmet Yilmaz 2025-04-14 16:00:30 +00:00
parent ac0084eb92
commit a7ca49c4bd
1 changed files with 0 additions and 3 deletions

View File

@ -527,8 +527,6 @@ PrepareInsertSelectForCitusPlanner(Query *insertSelectQuery)
RangeTblEntry *selectRte = ExtractSelectRangeTableEntry(insertSelectQuery);
Oid targetRelationId = insertRte->relid;
bool isWrapped = false;
if (selectRte->subquery->setOperations != NULL)
{
/*
@ -536,7 +534,6 @@ PrepareInsertSelectForCitusPlanner(Query *insertSelectQuery)
* wrapping it in a subquery to have a single target list.
*/
selectRte->subquery = WrapSubquery(selectRte->subquery);
isWrapped = true;
}
/* this is required for correct deparsing of the query */