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

Lines changed: 2 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy