Add explicit cast for argument to copyObject

PostgreSQL 10 adds a call to typeof, if supported.
pull/1938/head
Jason Petersen 2017-04-19 23:11:16 -06:00
parent b47534da45
commit c6a5074e05
1 changed files with 1 additions and 1 deletions

View File

@ -1320,7 +1320,7 @@ MasterAggregateMutator(Node *originalNode, MasterAggregateWalkerContext *walkerC
else if (IsA(originalNode, Var))
{
uint32 masterTableId = 1; /* one table on the master node */
Var *newColumn = copyObject(originalNode);
Var *newColumn = copyObject((Var *) originalNode);
newColumn->varno = masterTableId;
newColumn->varattno = walkerContext->columnId;
walkerContext->columnId++;