mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
merge
This commit is contained in:
commit
3faaf33333
3 changed files with 19 additions and 1 deletions
|
@ -56,6 +56,13 @@ t1 CREATE TABLE `t1` (
|
||||||
PARTITION p3 VALUES LESS THAN (733969) ENGINE = MyISAM,
|
PARTITION p3 VALUES LESS THAN (733969) ENGINE = MyISAM,
|
||||||
PARTITION pmax VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */
|
PARTITION pmax VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
create table t1 (a int NOT NULL, b varchar(5) NOT NULL)
|
||||||
|
default charset=utf8
|
||||||
|
partition by list (a)
|
||||||
|
subpartition by key (b)
|
||||||
|
(partition p0 values in (1),
|
||||||
|
partition p1 values in (2));
|
||||||
|
drop table t1;
|
||||||
create table t1 (a int, b int, key(a))
|
create table t1 (a int, b int, key(a))
|
||||||
partition by list (a)
|
partition by list (a)
|
||||||
( partition p0 values in (1),
|
( partition p0 values in (1),
|
||||||
|
|
|
@ -70,6 +70,17 @@ SELECT * FROM t1;
|
||||||
SHOW CREATE TABLE t1;
|
SHOW CREATE TABLE t1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#45904: Error when CHARSET=utf8 and subpartitioning
|
||||||
|
#
|
||||||
|
create table t1 (a int NOT NULL, b varchar(5) NOT NULL)
|
||||||
|
default charset=utf8
|
||||||
|
partition by list (a)
|
||||||
|
subpartition by key (b)
|
||||||
|
(partition p0 values in (1),
|
||||||
|
partition p1 values in (2));
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bug#44059: rec_per_key on empty partition gives weird optimiser results
|
# Bug#44059: rec_per_key on empty partition gives weird optimiser results
|
||||||
#
|
#
|
||||||
|
|
|
@ -1692,7 +1692,7 @@ bool fix_partition_func(THD *thd, TABLE *table,
|
||||||
if (((part_info->part_type != HASH_PARTITION ||
|
if (((part_info->part_type != HASH_PARTITION ||
|
||||||
part_info->list_of_part_fields == FALSE) &&
|
part_info->list_of_part_fields == FALSE) &&
|
||||||
check_part_func_fields(part_info->part_field_array, TRUE)) ||
|
check_part_func_fields(part_info->part_field_array, TRUE)) ||
|
||||||
(part_info->list_of_part_fields == FALSE &&
|
(part_info->list_of_subpart_fields == FALSE &&
|
||||||
part_info->is_sub_partitioned() &&
|
part_info->is_sub_partitioned() &&
|
||||||
check_part_func_fields(part_info->subpart_field_array, TRUE)))
|
check_part_func_fields(part_info->subpart_field_array, TRUE)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue