mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix for bug#16901 Partitions: crash, SELECT, column of part. function=first column of primary key
use part_info->no_subparts to calculate partition range in case of subpartitions
This commit is contained in:
@@ -3754,7 +3754,7 @@ void get_partition_set(const TABLE *table, byte *buf, const uint index,
|
||||
subpartitions. This is a range without holes.
|
||||
*/
|
||||
DBUG_ASSERT(sub_part == no_parts);
|
||||
part_spec->start_part= part_part * part_info->no_parts;
|
||||
part_spec->start_part= part_part * part_info->no_subparts;
|
||||
part_spec->end_part= part_spec->start_part+part_info->no_subparts - 1;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user