Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix use of uninitialized value in previous commit.
authorNoah Misch <noah@leadboat.com>
Wed, 25 Sep 2024 00:16:36 +0000 (17:16 -0700)
committerNoah Misch <noah@leadboat.com>
Wed, 25 Sep 2024 00:17:19 +0000 (17:17 -0700)
Per buildfarm member akepa and others.  Back-patch to v16 and v15.

Discussion: https://postgr.es/m/20240924224352.93.nmisch@google.com

src/backend/executor/nodeModifyTable.c

index bcb46c8e781b1f5beccb408cc2bc406311e28892..56ef8815d2aed748367c1fea763765ef31abe602 100644 (file)
@@ -2827,7 +2827,7 @@ ExecMergeMatched(ModifyTableContext *context, ResultRelInfo *resultRelInfo,
     * If there are no WHEN MATCHED actions, we are done.
     */
    if (resultRelInfo->ri_matchedMergeAction == NIL)
-       goto out;
+       return no_further_action;
 
    /*
     * Make tuple and any needed join variables available to ExecQual and