mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
0cbc668fc2
and innodb_file_format_max two system variables. And this also fixes bug #53654 after 2nd shutdown innodb_file_format_check attains strange values. rb://366 approved by Marko
22 lines
641 B
Text
22 lines
641 B
Text
-- 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 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_format_max=$file_format_max;
|
|
EVAL SET GLOBAL innodb_file_per_table=$file_per_table;
|