mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Applying InnoDB plugin snashot
Detailed revision comments: r6100 | jyang | 2009-10-22 06:51:07 +0300 (Thu, 22 Oct 2009) | 6 lines branches/zip: As a request from mysql, WARN_LEVEL_ERROR cannot be used for push_warning_* call any more. Switch to WARN_LEVEL_WARN. Bug #47233. rb://172 approved by Sunny Bains and Marko.
This commit is contained in:
@ -196,13 +196,13 @@ drop table t1;
|
|||||||
set innodb_strict_mode = on;
|
set innodb_strict_mode = on;
|
||||||
create table t1 (id int primary key) engine = innodb key_block_size = 0;
|
create table t1 (id int primary key) engine = innodb key_block_size = 0;
|
||||||
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 0. Valid values are [1, 2, 4, 8, 16]
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 0. Valid values are [1, 2, 4, 8, 16]
|
||||||
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
||||||
create table t2 (id int primary key) engine = innodb key_block_size = 9;
|
create table t2 (id int primary key) engine = innodb key_block_size = 9;
|
||||||
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
||||||
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
||||||
@ -233,28 +233,28 @@ key_block_size = 8 row_format = compressed;
|
|||||||
create table t2 (id int primary key) engine = innodb
|
create table t2 (id int primary key) engine = innodb
|
||||||
key_block_size = 8 row_format = redundant;
|
key_block_size = 8 row_format = redundant;
|
||||||
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: cannot specify ROW_FORMAT = REDUNDANT with KEY_BLOCK_SIZE.
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = REDUNDANT with KEY_BLOCK_SIZE.
|
||||||
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
||||||
create table t3 (id int primary key) engine = innodb
|
create table t3 (id int primary key) engine = innodb
|
||||||
key_block_size = 8 row_format = compact;
|
key_block_size = 8 row_format = compact;
|
||||||
ERROR HY000: Can't create table 'test.t3' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t3' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
|
||||||
Error 1005 Can't create table 'test.t3' (errno: 1478)
|
Error 1005 Can't create table 'test.t3' (errno: 1478)
|
||||||
create table t4 (id int primary key) engine = innodb
|
create table t4 (id int primary key) engine = innodb
|
||||||
key_block_size = 8 row_format = dynamic;
|
key_block_size = 8 row_format = dynamic;
|
||||||
ERROR HY000: Can't create table 'test.t4' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t4' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: cannot specify ROW_FORMAT = DYNAMIC with KEY_BLOCK_SIZE.
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = DYNAMIC with KEY_BLOCK_SIZE.
|
||||||
Error 1005 Can't create table 'test.t4' (errno: 1478)
|
Error 1005 Can't create table 'test.t4' (errno: 1478)
|
||||||
create table t5 (id int primary key) engine = innodb
|
create table t5 (id int primary key) engine = innodb
|
||||||
key_block_size = 8 row_format = default;
|
key_block_size = 8 row_format = default;
|
||||||
ERROR HY000: Can't create table 'test.t5' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t5' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
|
||||||
Error 1005 Can't create table 'test.t5' (errno: 1478)
|
Error 1005 Can't create table 'test.t5' (errno: 1478)
|
||||||
@ -266,7 +266,7 @@ drop table t1;
|
|||||||
create table t1 (id int primary key) engine = innodb
|
create table t1 (id int primary key) engine = innodb
|
||||||
key_block_size = 9 row_format = redundant;
|
key_block_size = 9 row_format = redundant;
|
||||||
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
||||||
Error 1478 InnoDB: cannot specify ROW_FORMAT = REDUNDANT with KEY_BLOCK_SIZE.
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = REDUNDANT with KEY_BLOCK_SIZE.
|
||||||
@ -274,7 +274,7 @@ Error 1005 Can't create table 'test.t1' (errno: 1478)
|
|||||||
create table t2 (id int primary key) engine = innodb
|
create table t2 (id int primary key) engine = innodb
|
||||||
key_block_size = 9 row_format = compact;
|
key_block_size = 9 row_format = compact;
|
||||||
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
||||||
Error 1478 InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = COMPACT with KEY_BLOCK_SIZE.
|
||||||
@ -282,7 +282,7 @@ Error 1005 Can't create table 'test.t2' (errno: 1478)
|
|||||||
create table t2 (id int primary key) engine = innodb
|
create table t2 (id int primary key) engine = innodb
|
||||||
key_block_size = 9 row_format = dynamic;
|
key_block_size = 9 row_format = dynamic;
|
||||||
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
Error 1478 InnoDB: invalid KEY_BLOCK_SIZE = 9. Valid values are [1, 2, 4, 8, 16]
|
||||||
Error 1478 InnoDB: cannot specify ROW_FORMAT = DYNAMIC with KEY_BLOCK_SIZE.
|
Error 1478 InnoDB: cannot specify ROW_FORMAT = DYNAMIC with KEY_BLOCK_SIZE.
|
||||||
@ -293,43 +293,43 @@ table_schema table_name row_format
|
|||||||
set global innodb_file_per_table = off;
|
set global innodb_file_per_table = off;
|
||||||
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
||||||
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
||||||
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
||||||
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
||||||
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
||||||
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
||||||
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
||||||
ERROR HY000: Can't create table 'test.t3' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t3' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
||||||
Error 1005 Can't create table 'test.t3' (errno: 1478)
|
Error 1005 Can't create table 'test.t3' (errno: 1478)
|
||||||
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
||||||
ERROR HY000: Can't create table 'test.t4' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t4' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
||||||
Error 1005 Can't create table 'test.t4' (errno: 1478)
|
Error 1005 Can't create table 'test.t4' (errno: 1478)
|
||||||
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
||||||
ERROR HY000: Can't create table 'test.t5' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t5' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
|
||||||
Error 1005 Can't create table 'test.t5' (errno: 1478)
|
Error 1005 Can't create table 'test.t5' (errno: 1478)
|
||||||
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
||||||
ERROR HY000: Can't create table 'test.t6' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t6' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_per_table.
|
Error 1478 InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_per_table.
|
||||||
Error 1005 Can't create table 'test.t6' (errno: 1478)
|
Error 1005 Can't create table 'test.t6' (errno: 1478)
|
||||||
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
||||||
ERROR HY000: Can't create table 'test.t7' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t7' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_per_table.
|
Error 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_per_table.
|
||||||
Error 1005 Can't create table 'test.t7' (errno: 1478)
|
Error 1005 Can't create table 'test.t7' (errno: 1478)
|
||||||
@ -345,43 +345,43 @@ set global innodb_file_per_table = on;
|
|||||||
set global innodb_file_format = `0`;
|
set global innodb_file_format = `0`;
|
||||||
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
||||||
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t1' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
||||||
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
Error 1005 Can't create table 'test.t1' (errno: 1478)
|
||||||
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
||||||
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t2' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
||||||
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
Error 1005 Can't create table 'test.t2' (errno: 1478)
|
||||||
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
||||||
ERROR HY000: Can't create table 'test.t3' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t3' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
||||||
Error 1005 Can't create table 'test.t3' (errno: 1478)
|
Error 1005 Can't create table 'test.t3' (errno: 1478)
|
||||||
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
||||||
ERROR HY000: Can't create table 'test.t4' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t4' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
||||||
Error 1005 Can't create table 'test.t4' (errno: 1478)
|
Error 1005 Can't create table 'test.t4' (errno: 1478)
|
||||||
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
||||||
ERROR HY000: Can't create table 'test.t5' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t5' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
Error 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
|
||||||
Error 1005 Can't create table 'test.t5' (errno: 1478)
|
Error 1005 Can't create table 'test.t5' (errno: 1478)
|
||||||
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
||||||
ERROR HY000: Can't create table 'test.t6' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t6' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_format > Antelope.
|
Error 1478 InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_format > Antelope.
|
||||||
Error 1005 Can't create table 'test.t6' (errno: 1478)
|
Error 1005 Can't create table 'test.t6' (errno: 1478)
|
||||||
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
||||||
ERROR HY000: Can't create table 'test.t7' (errno: 1478)
|
ERROR HY000: Can't create table 'test.t7' (errno: 1478)
|
||||||
show errors;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_format > Antelope.
|
Error 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_format > Antelope.
|
||||||
Error 1005 Can't create table 'test.t7' (errno: 1478)
|
Error 1005 Can't create table 'test.t7' (errno: 1478)
|
||||||
|
@ -175,11 +175,11 @@ set innodb_strict_mode = on;
|
|||||||
|
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t1 (id int primary key) engine = innodb key_block_size = 0;
|
create table t1 (id int primary key) engine = innodb key_block_size = 0;
|
||||||
show errors;
|
show warnings;
|
||||||
|
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t2 (id int primary key) engine = innodb key_block_size = 9;
|
create table t2 (id int primary key) engine = innodb key_block_size = 9;
|
||||||
show errors;
|
show warnings;
|
||||||
|
|
||||||
|
|
||||||
create table t3 (id int primary key) engine = innodb key_block_size = 1;
|
create table t3 (id int primary key) engine = innodb key_block_size = 1;
|
||||||
@ -205,22 +205,22 @@ key_block_size = 8 row_format = compressed;
|
|||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t2 (id int primary key) engine = innodb
|
create table t2 (id int primary key) engine = innodb
|
||||||
key_block_size = 8 row_format = redundant;
|
key_block_size = 8 row_format = redundant;
|
||||||
show errors;
|
show warnings;
|
||||||
|
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t3 (id int primary key) engine = innodb
|
create table t3 (id int primary key) engine = innodb
|
||||||
key_block_size = 8 row_format = compact;
|
key_block_size = 8 row_format = compact;
|
||||||
show errors;
|
show warnings;
|
||||||
|
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t4 (id int primary key) engine = innodb
|
create table t4 (id int primary key) engine = innodb
|
||||||
key_block_size = 8 row_format = dynamic;
|
key_block_size = 8 row_format = dynamic;
|
||||||
show errors;
|
show warnings;
|
||||||
|
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t5 (id int primary key) engine = innodb
|
create table t5 (id int primary key) engine = innodb
|
||||||
key_block_size = 8 row_format = default;
|
key_block_size = 8 row_format = default;
|
||||||
show errors;
|
show warnings;
|
||||||
|
|
||||||
SELECT table_schema, table_name, row_format
|
SELECT table_schema, table_name, row_format
|
||||||
FROM information_schema.tables WHERE engine='innodb';
|
FROM information_schema.tables WHERE engine='innodb';
|
||||||
@ -230,17 +230,17 @@ drop table t1;
|
|||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t1 (id int primary key) engine = innodb
|
create table t1 (id int primary key) engine = innodb
|
||||||
key_block_size = 9 row_format = redundant;
|
key_block_size = 9 row_format = redundant;
|
||||||
show errors;
|
show warnings;
|
||||||
|
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t2 (id int primary key) engine = innodb
|
create table t2 (id int primary key) engine = innodb
|
||||||
key_block_size = 9 row_format = compact;
|
key_block_size = 9 row_format = compact;
|
||||||
show errors;
|
show warnings;
|
||||||
|
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t2 (id int primary key) engine = innodb
|
create table t2 (id int primary key) engine = innodb
|
||||||
key_block_size = 9 row_format = dynamic;
|
key_block_size = 9 row_format = dynamic;
|
||||||
show errors;
|
show warnings;
|
||||||
|
|
||||||
SELECT table_schema, table_name, row_format
|
SELECT table_schema, table_name, row_format
|
||||||
FROM information_schema.tables WHERE engine='innodb';
|
FROM information_schema.tables WHERE engine='innodb';
|
||||||
@ -250,25 +250,25 @@ set global innodb_file_per_table = off;
|
|||||||
|
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
||||||
show errors;
|
show warnings;
|
||||||
create table t8 (id int primary key) engine = innodb row_format = compact;
|
create table t8 (id int primary key) engine = innodb row_format = compact;
|
||||||
create table t9 (id int primary key) engine = innodb row_format = redundant;
|
create table t9 (id int primary key) engine = innodb row_format = redundant;
|
||||||
|
|
||||||
@ -282,25 +282,25 @@ set global innodb_file_format = `0`;
|
|||||||
|
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
||||||
show errors;
|
show warnings;
|
||||||
--error ER_CANT_CREATE_TABLE
|
--error ER_CANT_CREATE_TABLE
|
||||||
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
||||||
show errors;
|
show warnings;
|
||||||
create table t8 (id int primary key) engine = innodb row_format = compact;
|
create table t8 (id int primary key) engine = innodb row_format = compact;
|
||||||
create table t9 (id int primary key) engine = innodb row_format = redundant;
|
create table t9 (id int primary key) engine = innodb row_format = redundant;
|
||||||
|
|
||||||
|
@ -5673,7 +5673,7 @@ create_table_def(
|
|||||||
number fits in one byte in prtype */
|
number fits in one byte in prtype */
|
||||||
push_warning_printf(
|
push_warning_printf(
|
||||||
(THD*) trx->mysql_thd,
|
(THD*) trx->mysql_thd,
|
||||||
MYSQL_ERROR::WARN_LEVEL_ERROR,
|
MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_CANT_CREATE_TABLE,
|
ER_CANT_CREATE_TABLE,
|
||||||
"In InnoDB, charset-collation codes"
|
"In InnoDB, charset-collation codes"
|
||||||
" must be below 256."
|
" must be below 256."
|
||||||
@ -5707,7 +5707,7 @@ create_table_def(
|
|||||||
if (dict_col_name_is_reserved(field->field_name)){
|
if (dict_col_name_is_reserved(field->field_name)){
|
||||||
push_warning_printf(
|
push_warning_printf(
|
||||||
(THD*) trx->mysql_thd,
|
(THD*) trx->mysql_thd,
|
||||||
MYSQL_ERROR::WARN_LEVEL_ERROR,
|
MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_CANT_CREATE_TABLE,
|
ER_CANT_CREATE_TABLE,
|
||||||
"Error creating table '%s' with "
|
"Error creating table '%s' with "
|
||||||
"column name '%s'. '%s' is a "
|
"column name '%s'. '%s' is a "
|
||||||
@ -5941,7 +5941,7 @@ create_options_are_valid(
|
|||||||
/* Valid value. */
|
/* Valid value. */
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
|
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_ILLEGAL_HA_CREATE_OPTION,
|
ER_ILLEGAL_HA_CREATE_OPTION,
|
||||||
"InnoDB: invalid"
|
"InnoDB: invalid"
|
||||||
" KEY_BLOCK_SIZE = %lu."
|
" KEY_BLOCK_SIZE = %lu."
|
||||||
@ -5955,7 +5955,7 @@ create_options_are_valid(
|
|||||||
/* If KEY_BLOCK_SIZE was specified, check for its
|
/* If KEY_BLOCK_SIZE was specified, check for its
|
||||||
dependencies. */
|
dependencies. */
|
||||||
if (kbs_specified && !srv_file_per_table) {
|
if (kbs_specified && !srv_file_per_table) {
|
||||||
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
|
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_ILLEGAL_HA_CREATE_OPTION,
|
ER_ILLEGAL_HA_CREATE_OPTION,
|
||||||
"InnoDB: KEY_BLOCK_SIZE"
|
"InnoDB: KEY_BLOCK_SIZE"
|
||||||
" requires innodb_file_per_table.");
|
" requires innodb_file_per_table.");
|
||||||
@ -5963,7 +5963,7 @@ create_options_are_valid(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (kbs_specified && srv_file_format < DICT_TF_FORMAT_ZIP) {
|
if (kbs_specified && srv_file_format < DICT_TF_FORMAT_ZIP) {
|
||||||
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
|
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_ILLEGAL_HA_CREATE_OPTION,
|
ER_ILLEGAL_HA_CREATE_OPTION,
|
||||||
"InnoDB: KEY_BLOCK_SIZE"
|
"InnoDB: KEY_BLOCK_SIZE"
|
||||||
" requires innodb_file_format >"
|
" requires innodb_file_format >"
|
||||||
@ -5987,7 +5987,7 @@ create_options_are_valid(
|
|||||||
if (!srv_file_per_table) {
|
if (!srv_file_per_table) {
|
||||||
push_warning_printf(
|
push_warning_printf(
|
||||||
thd,
|
thd,
|
||||||
MYSQL_ERROR::WARN_LEVEL_ERROR,
|
MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_ILLEGAL_HA_CREATE_OPTION,
|
ER_ILLEGAL_HA_CREATE_OPTION,
|
||||||
"InnoDB: ROW_FORMAT=%s"
|
"InnoDB: ROW_FORMAT=%s"
|
||||||
" requires innodb_file_per_table.",
|
" requires innodb_file_per_table.",
|
||||||
@ -5999,7 +5999,7 @@ create_options_are_valid(
|
|||||||
if (srv_file_format < DICT_TF_FORMAT_ZIP) {
|
if (srv_file_format < DICT_TF_FORMAT_ZIP) {
|
||||||
push_warning_printf(
|
push_warning_printf(
|
||||||
thd,
|
thd,
|
||||||
MYSQL_ERROR::WARN_LEVEL_ERROR,
|
MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_ILLEGAL_HA_CREATE_OPTION,
|
ER_ILLEGAL_HA_CREATE_OPTION,
|
||||||
"InnoDB: ROW_FORMAT=%s"
|
"InnoDB: ROW_FORMAT=%s"
|
||||||
" requires innodb_file_format >"
|
" requires innodb_file_format >"
|
||||||
@ -6016,7 +6016,7 @@ create_options_are_valid(
|
|||||||
&& form->s->row_type == ROW_TYPE_DYNAMIC) {
|
&& form->s->row_type == ROW_TYPE_DYNAMIC) {
|
||||||
push_warning_printf(
|
push_warning_printf(
|
||||||
thd,
|
thd,
|
||||||
MYSQL_ERROR::WARN_LEVEL_ERROR,
|
MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_ILLEGAL_HA_CREATE_OPTION,
|
ER_ILLEGAL_HA_CREATE_OPTION,
|
||||||
"InnoDB: cannot specify"
|
"InnoDB: cannot specify"
|
||||||
" ROW_FORMAT = DYNAMIC with"
|
" ROW_FORMAT = DYNAMIC with"
|
||||||
@ -6040,7 +6040,7 @@ create_options_are_valid(
|
|||||||
if (kbs_specified) {
|
if (kbs_specified) {
|
||||||
push_warning_printf(
|
push_warning_printf(
|
||||||
thd,
|
thd,
|
||||||
MYSQL_ERROR::WARN_LEVEL_ERROR,
|
MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_ILLEGAL_HA_CREATE_OPTION,
|
ER_ILLEGAL_HA_CREATE_OPTION,
|
||||||
"InnoDB: cannot specify"
|
"InnoDB: cannot specify"
|
||||||
" ROW_FORMAT = %s with"
|
" ROW_FORMAT = %s with"
|
||||||
@ -6053,7 +6053,7 @@ create_options_are_valid(
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
push_warning(thd,
|
push_warning(thd,
|
||||||
MYSQL_ERROR::WARN_LEVEL_ERROR,
|
MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_ILLEGAL_HA_CREATE_OPTION,
|
ER_ILLEGAL_HA_CREATE_OPTION,
|
||||||
"InnoDB: invalid ROW_FORMAT specifier.");
|
"InnoDB: invalid ROW_FORMAT specifier.");
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
|
Reference in New Issue
Block a user