Skip to content

Commit 3af7b2b

Browse files
MERGE fix variable warning in non-assert builds
Author: Jesper Pedersen
1 parent a5d8618 commit 3af7b2b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/backend/executor/execMerge.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ ExecMerge(ModifyTableState *mtstate, EState *estate, TupleTableSlot *slot,
4848
ItemPointer tupleid;
4949
ItemPointerData tuple_ctid;
5050
bool matched = false;
51-
char relkind;
5251
Datum datum;
5352
bool isNull;
5453

55-
relkind = resultRelInfo->ri_RelationDesc->rd_rel->relkind;
56-
Assert(relkind == RELKIND_RELATION ||
57-
relkind == RELKIND_PARTITIONED_TABLE);
54+
Assert(resultRelInfo->ri_RelationDesc->rd_rel->relkind ||
55+
resultRelInfo->ri_RelationDesc->rd_rel->relkind == RELKIND_PARTITIONED_TABLE);
5856

5957
/*
6058
* Reset per-tuple memory context to free any expression evaluation

0 commit comments

Comments
 (0)