From 4ba4429f446f5dc22e9dceb83c5e875b12159d46 Mon Sep 17 00:00:00 2001
From: wang gang <wanggang@halotech.com>
Date: Mon, 27 Jul 2026 17:46:22 +0800
Subject: [PATCH] Fix partition_prue

---
 src/backend/partitioning/partprune.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/partitioning/partprune.c b/src/backend/partitioning/partprune.c
index e7c318bbcac..8eedb6cce16 100644
--- a/src/backend/partitioning/partprune.c
+++ b/src/backend/partitioning/partprune.c
@@ -3685,9 +3685,9 @@ perform_pruning_combine_step(PartitionPruneContext *context,
 										step_result->bound_offsets);
 
 					/* Update whether to scan null and default partitions. */
-					if (result->scan_null)
+					if (step_result->scan_null)
 						result->scan_null = step_result->scan_null;
-					if (result->scan_default)
+					if (step_result->scan_default)
 						result->scan_default = step_result->scan_default;
 				}
 			}
-- 
2.34.1

