mirror of https://github.com/postgres/postgres
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:
parent
e1551f96e6
commit
2032645b19
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue