1
0
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:
gluh@eagle.intranet.mysql.r18.ru
2006-02-15 13:42:43 +04:00
parent e7c73bb754
commit 00fc4cabe5
3 changed files with 27 additions and 1 deletions

View File

@@ -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