BUG#16002: Unsigned partition function support

After review fix
parent d4c8576e
...@@ -2532,10 +2532,10 @@ int get_partition_id_range(partition_info *part_info, ...@@ -2532,10 +2532,10 @@ int get_partition_id_range(partition_info *part_info,
if (loc_part_id != max_partition) if (loc_part_id != max_partition)
loc_part_id++; loc_part_id++;
*part_id= (uint32)loc_part_id; *part_id= (uint32)loc_part_id;
if (loc_part_id == max_partition) if (loc_part_id == max_partition &&
if (range_array[loc_part_id] != LONGLONG_MAX) range_array[loc_part_id] != LONGLONG_MAX &&
if (part_func_value >= range_array[loc_part_id]) part_func_value >= range_array[loc_part_id])
DBUG_RETURN(HA_ERR_NO_PARTITION_FOUND); DBUG_RETURN(HA_ERR_NO_PARTITION_FOUND);
DBUG_RETURN(0); DBUG_RETURN(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