diff options
author | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-02-15 13:42:43 +0400 |
---|---|---|
committer | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-02-15 13:42:43 +0400 |
commit | 76374fe5643edcca1067070912efef5599f48e70 (patch) | |
tree | 37b3cc3ed0d9fd68bbde89457fb0044e1a7ed7c9 /sql | |
parent | 67c719fa7471a317123ed07cc71ddc63c96c54c5 (diff) | |
download | mariadb-git-76374fe5643edcca1067070912efef5599f48e70.tar.gz |
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
mysql-test/r/partition.result:
Fix for bug#16901 Partitions: crash, SELECT, column of part. function=first column of primary key
test case
mysql-test/t/partition.test:
Fix for bug#16901 Partitions: crash, SELECT, column of part. function=first column of primary key
test case
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_partition.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index 290d512198f..9830d24b604 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -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 |