diff options
Diffstat (limited to 'mysql-test/suite/innodb_zip/t/innodb_bug53591.test')
-rw-r--r-- | mysql-test/suite/innodb_zip/t/innodb_bug53591.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb_zip/t/innodb_bug53591.test b/mysql-test/suite/innodb_zip/t/innodb_bug53591.test new file mode 100644 index 00000000000..9a1c2afbccb --- /dev/null +++ b/mysql-test/suite/innodb_zip/t/innodb_bug53591.test @@ -0,0 +1,20 @@ +--source include/have_innodb.inc + +let $file_format=`select @@innodb_file_format`; +let $file_per_table=`select @@innodb_file_per_table`; + +SET GLOBAL innodb_file_format='Barracuda'; +SET GLOBAL innodb_file_per_table=on; + +set old_alter_table=0; + +CREATE TABLE bug53591(a text charset utf8 not null) +ENGINE=InnoDB KEY_BLOCK_SIZE=1; +-- error 139 +ALTER TABLE bug53591 ADD PRIMARY KEY(a(220)); +SHOW WARNINGS; + +DROP TABLE bug53591; + +EVAL SET GLOBAL innodb_file_format=$file_format; +EVAL SET GLOBAL innodb_file_per_table=$file_per_table; |