summaryrefslogtreecommitdiff
path: root/mysql-test/r/partition_datatype.result
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-10-28 01:11:17 +0100
committerMikael Ronstrom <mikael@mysql.com>2009-10-28 01:11:17 +0100
commit10fed1aca0096acb135c2065233e84d61b00b9cf (patch)
tree32eac76c7c0b41298c58cd40bc85138e177d8a98 /mysql-test/r/partition_datatype.result
parentcc43a2089cf6f45afb2cb5c15e2a077b075b80f8 (diff)
downloadmariadb-git-10fed1aca0096acb135c2065233e84d61b00b9cf.tar.gz
BUG#48165, needed to introduce length restrictions on partitioning fields to ensure that no stack overruns occur
Diffstat (limited to 'mysql-test/r/partition_datatype.result')
-rw-r--r--mysql-test/r/partition_datatype.result8
1 files changed, 5 insertions, 3 deletions
diff --git a/mysql-test/r/partition_datatype.result b/mysql-test/r/partition_datatype.result
index 607afb71da5..47ea799f497 100644
--- a/mysql-test/r/partition_datatype.result
+++ b/mysql-test/r/partition_datatype.result
@@ -273,7 +273,7 @@ select * from t1 where a = 'y';
a
y
drop table t1;
-create table t1 (a varchar(65531)) partition by key (a);
+create table t1 (a varchar(3068)) partition by key (a);
insert into t1 values ('bbbb');
insert into t1 values ('aaaa');
select * from t1 where a = 'aaaa';
@@ -286,7 +286,7 @@ select * from t1 where a = 'bbbb';
a
bbbb
drop table t1;
-create table t1 (a varchar(65532)) partition by key (a);
+create table t1 (a varchar(3069)) partition by key (a);
insert into t1 values ('bbbb');
insert into t1 values ('aaaa');
select * from t1 where a = 'aaaa';
@@ -299,7 +299,7 @@ select * from t1 where a = 'bbbb';
a
bbbb
drop table t1;
-create table t1 (a varchar(65533) not null) partition by key (a);
+create table t1 (a varchar(3070) not null) partition by key (a);
insert into t1 values ('bbbb');
insert into t1 values ('aaaa');
select * from t1 where a = 'aaaa';
@@ -312,6 +312,8 @@ select * from t1 where a = 'bbbb';
a
bbbb
drop table t1;
+create table t1 (a varchar(3070)) partition by key (a);
+ERROR HY000: The total length of the partitioning fields is too large
create table t1 (a varchar(65533)) partition by key (a);
ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs
create table t1 (a varchar(65534) not null) partition by key (a);