mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Manual merge
This commit is contained in:
parent
6636937807
commit
c71dd8c145
2 changed files with 4 additions and 1 deletions
|
@ -445,6 +445,8 @@ alter table t1 add partition (partition p1 values less than (2));
|
||||||
ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
|
ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
|
||||||
alter table t1 add partition (partition p1 values in (2));
|
alter table t1 add partition (partition p1 values in (2));
|
||||||
ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
|
ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a int)
|
||||||
partition by list (a)
|
partition by list (a)
|
||||||
(partition p0 values in (1));
|
(partition p0 values in (1));
|
||||||
alter table t1 rebuild partition;
|
alter table t1 rebuild partition;
|
||||||
|
|
|
@ -4135,7 +4135,8 @@ uint prep_alter_part_table(THD *thd, TABLE *table, ALTER_INFO *alter_info,
|
||||||
*fast_alter_partition, flags));
|
*fast_alter_partition, flags));
|
||||||
if (((alter_info->flags & ALTER_ADD_PARTITION) ||
|
if (((alter_info->flags & ALTER_ADD_PARTITION) ||
|
||||||
(alter_info->flags & ALTER_REORGANIZE_PARTITION)) &&
|
(alter_info->flags & ALTER_REORGANIZE_PARTITION)) &&
|
||||||
(thd->lex->part_info->part_type != tab_part_info->part_type))
|
(thd->lex->part_info->part_type != tab_part_info->part_type) &&
|
||||||
|
(thd->lex->part_info->part_type != NOT_A_PARTITION))
|
||||||
{
|
{
|
||||||
if (thd->lex->part_info->part_type == RANGE_PARTITION)
|
if (thd->lex->part_info->part_type == RANGE_PARTITION)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue