mirror of https://github.com/citusdata/citus.git
Add explicit cast for argument to copyObject
PostgreSQL 10 adds a call to typeof, if supported.pull/1377/head
parent
40ebd93be3
commit
82b03d5cb6
|
@ -1320,7 +1320,7 @@ MasterAggregateMutator(Node *originalNode, MasterAggregateWalkerContext *walkerC
|
||||||
else if (IsA(originalNode, Var))
|
else if (IsA(originalNode, Var))
|
||||||
{
|
{
|
||||||
uint32 masterTableId = 1; /* one table on the master node */
|
uint32 masterTableId = 1; /* one table on the master node */
|
||||||
Var *newColumn = copyObject(originalNode);
|
Var *newColumn = copyObject((Var *) originalNode);
|
||||||
newColumn->varno = masterTableId;
|
newColumn->varno = masterTableId;
|
||||||
newColumn->varattno = walkerContext->columnId;
|
newColumn->varattno = walkerContext->columnId;
|
||||||
walkerContext->columnId++;
|
walkerContext->columnId++;
|
||||||
|
|
Loading…
Reference in New Issue