Skip to content

Commit 8f7771e

Browse files
committed
rename goto label (binary_opexpr_return), fix fill_type_cmp_fmgr_info() call in handle_const() for domains
1 parent 2a3c645 commit 8f7771e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pg_pathman.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ handle_binary_opexpr(WalkerContext *context, WrapperNode *result,
11841184

11851185
/* There's no strategy for this operator, go to end */
11861186
if (strategy == 0)
1187-
goto binary_opexpr_all;
1187+
goto binary_opexpr_return;
11881188

11891189
fill_type_cmp_fmgr_info(&cmp_func,
11901190
getBaseType(c->consttype),
@@ -1206,7 +1206,7 @@ handle_binary_opexpr(WalkerContext *context, WrapperNode *result,
12061206
return; /* exit on equal */
12071207
}
12081208
/* Else go to end */
1209-
else goto binary_opexpr_all;
1209+
else goto binary_opexpr_return;
12101210

12111211
case PT_RANGE:
12121212
{
@@ -1226,7 +1226,7 @@ handle_binary_opexpr(WalkerContext *context, WrapperNode *result,
12261226
elog(ERROR, "Unknown partitioning type %u", prel->parttype);
12271227
}
12281228

1229-
binary_opexpr_all:
1229+
binary_opexpr_return:
12301230
result->rangeset = list_make1_irange(make_irange(0, PrelLastChild(prel), true));
12311231
result->paramsel = 1.0;
12321232
}
@@ -1381,8 +1381,8 @@ handle_const(const Const *c, WalkerContext *context)
13811381
FmgrInfo cmp_finfo;
13821382

13831383
fill_type_cmp_fmgr_info(&cmp_finfo,
1384-
c->consttype,
1385-
prel->atttype);
1384+
getBaseType(c->consttype),
1385+
getBaseType(prel->atttype));
13861386

13871387
select_range_partitions(c->constvalue,
13881388
&cmp_finfo,

0 commit comments

Comments
 (0)