From 11f9f048a40d15ad563e4ca405c7e27ca2ae6e36 Mon Sep 17 00:00:00 2001 From: myzhen Date: Tue, 6 Jan 2026 18:42:28 +0800 Subject: [PATCH] Fix incorrect column name in error message for range partition bound check. When range partition boundary value lists contain MINVALUE or MAXVALUE, and subsequent boundary values cannot be implicitly cast to the corresponding partition key data type, the error message references an incorrect column name. --- src/backend/parser/parse_utilcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index 3f4393b52ea..d739ca96813 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -4841,10 +4841,10 @@ transformPartitionRangeBounds(ParseState *pstate, List *blist, prd = makeNode(PartitionRangeDatum); prd->kind = PARTITION_RANGE_DATUM_VALUE; prd->value = (Node *) value; - ++i; } prd->location = exprLocation(expr); + ++i; result = lappend(result, prd); } -- 2.28.0.windows.1