Begin searching AggregateNames from 1, not 0

pull/2957/head
Philip Dubé 2019-09-11 21:42:25 +00:00
parent d6deb062aa
commit 2aa6852dea
1 changed files with 3 additions and 1 deletions

View File

@ -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)