Commit 16b603a8 authored by Mikael Ronstrom's avatar Mikael Ronstrom

Fixed a use of non-initialised variable, cannot use NULL flags if RANGE ==...

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
parent 092cf828
...@@ -7382,7 +7382,7 @@ int get_part_iter_for_interval_via_mapping(partition_info *part_info, ...@@ -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->ret_null_part= part_iter->ret_null_part_orig= TRUE;
part_iter->part_nums.start= part_iter->part_nums.cur= 0; 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 */ /* The right bound is X <= NULL, i.e. it is a "X IS NULL" interval */
part_iter->part_nums.end= 0; part_iter->part_nums.end= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment