Skip to content

Commit 2032645

Browse files
committed
Fix compiler warning in non-assert builds
Oversight in commit e1551f9. Reported-by: Erik Rijkers Discussion: https://postgr.es/m/[email protected]
1 parent e1551f9 commit 2032645

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/access/common/tupconvert.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map)
143143
bool *inisnull = map->inisnull;
144144
Datum *outvalues = map->outvalues;
145145
bool *outisnull = map->outisnull;
146-
int outnatts = map->outdesc->natts;
147146
int i;
148147

149148
/*
@@ -156,7 +155,7 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map)
156155
/*
157156
* Transpose into proper fields of the new tuple.
158157
*/
159-
Assert(attrMap->maplen == outnatts);
158+
Assert(attrMap->maplen == map->outdesc->natts);
160159
for (i = 0; i < attrMap->maplen; i++)
161160
{
162161
int j = attrMap->attnums[i];

0 commit comments

Comments
 (0)