~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- source include/have_innodb.inc

let $file_format=`select @@innodb_file_format`;
let $file_format_max=`select @@innodb_file_format_max`;
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 not null)
ENGINE=InnoDB;
--error HA_ERR_TO_BIG_ROW, ER_TOO_LONG_KEY
ALTER TABLE bug53591 ADD PRIMARY KEY(a(500));
SHOW WARNINGS;

DROP TABLE bug53591;

EVAL SET GLOBAL innodb_file_format=$file_format;
EVAL SET GLOBAL innodb_file_format_max=$file_format_max;
EVAL SET GLOBAL innodb_file_per_table=$file_per_table;