git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e1551f9)
Fix compiler warning in non-assert builds
2019年12月18日 07:55:25 +0000 (16:55 +0900)
2019年12月18日 07:55:25 +0000 (16:55 +0900)
Oversight in commit e1551f9.

Reported-by: Erik Rijkers
Discussion: https://postgr.es/m/b7ad911d3eaa29af9fcdb9ccb26c363c@xs4all.nl


diff --git a/src/backend/access/common/tupconvert.c b/src/backend/access/common/tupconvert.c
index 85b194f3944678794cb4b149f3cf6a0777f0fd14..88b8538dc9e759bed65fea36cde648440a88ef52 100644 (file)
--- a/src/backend/access/common/tupconvert.c
+++ b/src/backend/access/common/tupconvert.c
@@ -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];
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /