mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#18198: Too flexible partition functions
This commit is contained in:
@ -8,6 +8,28 @@
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
|
||||
#
|
||||
# Bug 18198: Partitions: Too flexible functions
|
||||
#
|
||||
-- error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
|
||||
create table t1 (a int)
|
||||
partition by range (a)
|
||||
(partition p0 values less than ((select count(*) from t1)));
|
||||
-- error 1054
|
||||
create table t1 (a int)
|
||||
partition by range (a)
|
||||
(partition p0 values less than (a);
|
||||
|
||||
create table t1 (a int)
|
||||
partition by range (a)
|
||||
(partition p0 values less than (1));
|
||||
-- error 1054
|
||||
alter table t1 add partition (partition p1 values less than (a));
|
||||
-- error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
|
||||
alter table t1 add partition
|
||||
(partition p1 values less than ((select count(*) from t1)));
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug 20397: Partitions: Crash when using non-existing engine
|
||||
#
|
||||
|
Reference in New Issue
Block a user