mirror of https://github.com/citusdata/citus.git
Begin searching AggregateNames from 1, not 0
parent
d6deb062aa
commit
2aa6852dea
|
@ -2896,7 +2896,9 @@ GetAggregateType(Oid aggFunctionId)
|
|||
}
|
||||
|
||||
aggregateCount = lengthof(AggregateNames);
|
||||
for (aggregateIndex = 0; aggregateIndex < aggregateCount; aggregateIndex++)
|
||||
|
||||
Assert(AGGREGATE_INVALID_FIRST == 0);
|
||||
for (aggregateIndex = 1; aggregateIndex < aggregateCount; aggregateIndex++)
|
||||
{
|
||||
const char *aggregateName = AggregateNames[aggregateIndex];
|
||||
if (strncmp(aggregateName, aggregateProcName, NAMEDATALEN) == 0)
|
||||
|
|
Loading…
Reference in New Issue