Add explicit cast for argument to copyObject

PostgreSQL 10 adds a call to typeof, if supported.
pull/1377/head
Jason Petersen 2017-04-19 23:11:16 -06:00
parent 40ebd93be3
commit 82b03d5cb6
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
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++;