Fixed a use of non-initialised variable, cannot use NULL flags if RANGE == NO_MAX_RANGE or NO_MIN_RANGE, so need to check NULL flags after checking the RANGE isn't NO_MAX_RANGE
This commit is contained in:
parent
fc863ba96f
commit
06bfaf21f2
@ -7382,7 +7382,7 @@ int get_part_iter_for_interval_via_mapping(partition_info *part_info,
|
||||
{
|
||||
part_iter->ret_null_part= part_iter->ret_null_part_orig= TRUE;
|
||||
part_iter->part_nums.start= part_iter->part_nums.cur= 0;
|
||||
if (*max_value && !(flags & NO_MAX_RANGE))
|
||||
if (!(flags & NO_MAX_RANGE) && *max_value)
|
||||
{
|
||||
/* The right bound is X <= NULL, i.e. it is a "X IS NULL" interval */
|
||||
part_iter->part_nums.end= 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user