Fix compiler warning in non-assert builds

Oversight in commit e1551f9.

Reported-by: Erik Rijkers
Discussion: https://postgr.es/m/b7ad911d3eaa29af9fcdb9ccb26c363c@xs4all.nl
This commit is contained in:
Michael Paquier 2019-12-18 16:55:25 +09:00
parent e1551f96e6
commit 2032645b19
1 changed files with 1 additions and 2 deletions

View File

@ -143,7 +143,6 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map)
bool *inisnull = map->inisnull;
Datum *outvalues = map->outvalues;
bool *outisnull = map->outisnull;
int outnatts = map->outdesc->natts;
int i;
/*
@ -156,7 +155,7 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map)
/*
* Transpose into proper fields of the new tuple.
*/
Assert(attrMap->maplen == outnatts);
Assert(attrMap->maplen == map->outdesc->natts);
for (i = 0; i < attrMap->maplen; i++)
{
int j = attrMap->attnums[i];