mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
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:
@ -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];
|
||||
|
Reference in New Issue
Block a user