summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorunknown <mikael@dator5.(none)>2006-06-20 10:57:02 -0400
committerunknown <mikael@dator5.(none)>2006-06-20 10:57:02 -0400
commit3856cdb89b3753bb56e56b2a8629a2dd8d2d3deb (patch)
tree1a535343c095a264ddd53eb3dd6ed310de99d886 /mysql-test/r
parent9f8c532f0c7d8472cb809be6f80bb596d38b336b (diff)
downloadmariadb-git-3856cdb89b3753bb56e56b2a8629a2dd8d2d3deb.tar.gz
BUG#18198: Too flexible partition functions
mysql-test/r/partition_error.result: New test cases mysql-test/t/partition_error.test: New test cases sql/sql_yacc.yy: Verify that partition function is allowed before "fixing" it
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/partition_error.result17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/partition_error.result b/mysql-test/r/partition_error.result
index 39f0cf9ca55..38ea8e860a1 100644
--- a/mysql-test/r/partition_error.result
+++ b/mysql-test/r/partition_error.result
@@ -1,5 +1,22 @@
drop table if exists t1;
create table t1 (a int)
+partition by range (a)
+(partition p0 values less than ((select count(*) from t1)));
+ERROR HY000: This partition function is not allowed
+create table t1 (a int)
+partition by range (a)
+(partition p0 values less than (a);
+ERROR 42S22: Unknown column 'a' in 'partition function'
+create table t1 (a int)
+partition by range (a)
+(partition p0 values less than (1));
+alter table t1 add partition (partition p1 values less than (a));
+ERROR 42S22: Unknown column 'a' in 'partition function'
+alter table t1 add partition
+(partition p1 values less than ((select count(*) from t1)));
+ERROR HY000: This partition function is not allowed
+drop table t1;
+create table t1 (a int)
engine = x
partition by key (a);
Warnings: