@@ -1184,7 +1184,7 @@ handle_binary_opexpr(WalkerContext *context, WrapperNode *result,
1184
1184
1185
1185
/* There's no strategy for this operator, go to end */
1186
1186
if (strategy == 0 )
1187
- goto binary_opexpr_all ;
1187
+ goto binary_opexpr_return ;
1188
1188
1189
1189
fill_type_cmp_fmgr_info (& cmp_func ,
1190
1190
getBaseType (c -> consttype ),
@@ -1206,7 +1206,7 @@ handle_binary_opexpr(WalkerContext *context, WrapperNode *result,
1206
1206
return ; /* exit on equal */
1207
1207
}
1208
1208
/* Else go to end */
1209
- else goto binary_opexpr_all ;
1209
+ else goto binary_opexpr_return ;
1210
1210
1211
1211
case PT_RANGE :
1212
1212
{
@@ -1226,7 +1226,7 @@ handle_binary_opexpr(WalkerContext *context, WrapperNode *result,
1226
1226
elog (ERROR , "Unknown partitioning type %u" , prel -> parttype );
1227
1227
}
1228
1228
1229
- binary_opexpr_all :
1229
+ binary_opexpr_return :
1230
1230
result -> rangeset = list_make1_irange (make_irange (0 , PrelLastChild (prel ), true));
1231
1231
result -> paramsel = 1.0 ;
1232
1232
}
@@ -1381,8 +1381,8 @@ handle_const(const Const *c, WalkerContext *context)
1381
1381
FmgrInfo cmp_finfo ;
1382
1382
1383
1383
fill_type_cmp_fmgr_info (& cmp_finfo ,
1384
- c -> consttype ,
1385
- prel -> atttype );
1384
+ getBaseType ( c -> consttype ) ,
1385
+ getBaseType ( prel -> atttype ) );
1386
1386
1387
1387
select_range_partitions (c -> constvalue ,
1388
1388
& cmp_finfo ,
0 commit comments