mirror of
https://github.com/MariaDB/server.git
synced 2025-11-18 07:48:43 +03:00
BUG#17947: Crash when REBUILD PARTITION syntax error
This commit is contained in:
@@ -422,4 +422,10 @@ partition_name partition_description table_rows
|
|||||||
x123 11,12 1
|
x123 11,12 1
|
||||||
x234 NULL,1 1
|
x234 NULL,1 1
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
create table t1 (a int)
|
||||||
|
partition by list (a)
|
||||||
|
(partition p0 values in (1));
|
||||||
|
alter table t1 rebuild partition;
|
||||||
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
|
||||||
|
drop table t1;
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
|
|||||||
@@ -540,4 +540,16 @@ select partition_name, partition_description, table_rows
|
|||||||
from information_schema.partitions where table_schema ='test';
|
from information_schema.partitions where table_schema ='test';
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# BUG 17947 Crash with REBUILD PARTITION
|
||||||
|
#
|
||||||
|
create table t1 (a int)
|
||||||
|
partition by list (a)
|
||||||
|
(partition p0 values in (1));
|
||||||
|
|
||||||
|
--error 1064
|
||||||
|
alter table t1 rebuild partition;
|
||||||
|
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
--echo End of 5.1 tests
|
--echo End of 5.1 tests
|
||||||
|
|||||||
@@ -5024,7 +5024,7 @@ alter_commands:
|
|||||||
;
|
;
|
||||||
|
|
||||||
all_or_alt_part_name_list:
|
all_or_alt_part_name_list:
|
||||||
| ALL
|
ALL
|
||||||
{
|
{
|
||||||
Lex->alter_info.flags|= ALTER_ALL_PARTITION;
|
Lex->alter_info.flags|= ALTER_ALL_PARTITION;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user