Commit 2032645b authored by Michael Paquier's avatar Michael Paquier

Fix compiler warning in non-assert builds

Oversight in commit e1551f96.

Reported-by: Erik Rijkers
Discussion: https://postgr.es/m/b7ad911d3eaa29af9fcdb9ccb26c363c@xs4all.nl
parent e1551f96
...@@ -143,7 +143,6 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map) ...@@ -143,7 +143,6 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map)
bool *inisnull = map->inisnull; bool *inisnull = map->inisnull;
Datum *outvalues = map->outvalues; Datum *outvalues = map->outvalues;
bool *outisnull = map->outisnull; bool *outisnull = map->outisnull;
int outnatts = map->outdesc->natts;
int i; int i;
/* /*
...@@ -156,7 +155,7 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map) ...@@ -156,7 +155,7 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map)
/* /*
* Transpose into proper fields of the new tuple. * 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++) for (i = 0; i < attrMap->maplen; i++)
{ {
int j = attrMap->attnums[i]; int j = attrMap->attnums[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment