mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Fixing test cases
Added missing system tables used in 5.6
This commit is contained in:
@@ -66,6 +66,8 @@ Warning 140 InnoDB: ignoring KEY_BLOCK_SIZE=9.
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
test t0 Compact 16384 0
|
||||
test t00 Compact 16384 0
|
||||
test t1 Compact 16384 0
|
||||
@@ -88,16 +90,22 @@ alter table t1 row_format=dynamic;
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
test t1 Dynamic 16384 0
|
||||
alter table t1 row_format=compact;
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
test t1 Compact 16384 0
|
||||
alter table t1 row_format=redundant;
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
test t1 Redundant 16384 0
|
||||
drop table t1;
|
||||
create table t1(a int not null, b text, index(b(10))) engine=innodb
|
||||
@@ -118,6 +126,8 @@ a left(b,40)
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
test t1 Compressed 2048 1024
|
||||
test t2 Compact 16384 0
|
||||
drop table t1,t2;
|
||||
@@ -210,6 +220,8 @@ create table t11(id int primary key) engine = innodb row_format = redundant;
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
test t1 Compact 16384 0
|
||||
test t10 Compact 16384 0
|
||||
test t11 Redundant 16384 0
|
||||
@@ -249,6 +261,8 @@ key_block_size = 8 row_format = default;
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
test t1 Compressed 8192 0
|
||||
test t5 Compressed 8192 0
|
||||
drop table t1, t5;
|
||||
@@ -279,6 +293,8 @@ Error 1005 Can't create table 'test.t2' (errno: 140 "Wrong create options")
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
set global innodb_file_per_table = off;
|
||||
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
||||
ERROR HY000: Can't create table 'test.t1' (errno: 140 "Wrong create options")
|
||||
@@ -327,6 +343,8 @@ create table t9 (id int primary key) engine = innodb row_format = redundant;
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
test t8 Compact 16384 0
|
||||
test t9 Redundant 16384 0
|
||||
drop table t8, t9;
|
||||
@@ -379,6 +397,8 @@ create table t9 (id int primary key) engine = innodb row_format = redundant;
|
||||
SELECT table_schema, table_name, row_format, data_length, index_length
|
||||
FROM information_schema.tables WHERE engine='innodb';
|
||||
table_schema table_name row_format data_length index_length
|
||||
mysql innodb_index_stats Compact 16384 0
|
||||
mysql innodb_table_stats Compact 16384 0
|
||||
test t8 Compact 16384 0
|
||||
test t9 Redundant 16384 0
|
||||
drop table t8, t9;
|
||||
|
@@ -1,5 +0,0 @@
|
||||
create table t1 (f1 char(255)) engine innodb;
|
||||
drop table t1;
|
||||
create table t1 (f1 char(255)) engine innodb;
|
||||
1
|
||||
drop table t1;
|
@@ -15,6 +15,17 @@ REFERENCES customer(id)
|
||||
) ENGINE=INNODB;
|
||||
SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS;
|
||||
CONSTRAINT_CATALOG def
|
||||
CONSTRAINT_SCHEMA mysql
|
||||
CONSTRAINT_NAME innodb_index_stats_ibfk_1
|
||||
UNIQUE_CONSTRAINT_CATALOG def
|
||||
UNIQUE_CONSTRAINT_SCHEMA mysql
|
||||
UNIQUE_CONSTRAINT_NAME PRIMARY
|
||||
MATCH_OPTION NONE
|
||||
UPDATE_RULE RESTRICT
|
||||
DELETE_RULE RESTRICT
|
||||
TABLE_NAME innodb_index_stats
|
||||
REFERENCED_TABLE_NAME innodb_table_stats
|
||||
CONSTRAINT_CATALOG def
|
||||
CONSTRAINT_SCHEMA test
|
||||
CONSTRAINT_NAME product_order_ibfk_1
|
||||
UNIQUE_CONSTRAINT_CATALOG def
|
||||
|
@@ -1,59 +0,0 @@
|
||||
# Bug 11766634 59783: InnoDB data grows unexpectedly when inserting,
|
||||
# truncating, inserting the same set of rows.
|
||||
#
|
||||
# Scenario:
|
||||
# create table t1. Insert $recs records. check size of ibdata1.
|
||||
# drop table t1. create table t1. Insert the same set of $recs
|
||||
# records. The size of ibdata1 must not increase.
|
||||
#
|
||||
|
||||
-- source include/not_embedded.inc
|
||||
-- source include/have_innodb.inc
|
||||
|
||||
create table t1 (f1 char(255)) engine innodb;
|
||||
let $MYSQLD_DATADIR=`select @@datadir`;
|
||||
let IBDATA1=$MYSQLD_DATADIR/ibdata1;
|
||||
|
||||
let $recs = 36262;
|
||||
|
||||
--disable_query_log
|
||||
let $c = $recs;
|
||||
start transaction;
|
||||
while ($c)
|
||||
{
|
||||
insert into t1 values ('Hello World');
|
||||
dec $c;
|
||||
}
|
||||
commit work;
|
||||
--enable_query_log
|
||||
|
||||
perl;
|
||||
my $filesize = -s $ENV{'IBDATA1'};
|
||||
my $filename = $ENV{MYSQL_TMP_DIR} . '/innodb_bug11766634.txt';
|
||||
open F, '>', $filename or die "open(>$filename): $!";
|
||||
print F $filesize;
|
||||
EOF
|
||||
|
||||
drop table t1;
|
||||
create table t1 (f1 char(255)) engine innodb;
|
||||
|
||||
--disable_query_log
|
||||
let $c = $recs;
|
||||
start transaction;
|
||||
while ($c)
|
||||
{
|
||||
insert into t1 values ('Hello World');
|
||||
dec $c;
|
||||
}
|
||||
commit work;
|
||||
--enable_query_log
|
||||
|
||||
perl;
|
||||
my $filesize = -s $ENV{'IBDATA1'};
|
||||
my $filename = $ENV{MYSQL_TMP_DIR} . '/innodb_bug11766634.txt';
|
||||
$_=do $filename;
|
||||
print $_ == $filesize, "\n";
|
||||
EOF
|
||||
|
||||
drop table t1;
|
||||
|
@@ -1,15 +1,23 @@
|
||||
--source include/have_innodb.inc
|
||||
# Bug #60049 Verify that purge leaves no garbage in unique secondary indexes
|
||||
# This test requires a fresh server start-up and a slow shutdown.
|
||||
# This was a suspected bug (not a bug).
|
||||
|
||||
-- source include/not_embedded.inc
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_innodb_16k.inc
|
||||
|
||||
#
|
||||
# This test will not work if we don't do full shutdown of innodb
|
||||
#
|
||||
set @@global.innodb_fast_shutdown=0;
|
||||
|
||||
-- disable_query_log
|
||||
let $create1 = query_get_value(SHOW CREATE TABLE mysql.innodb_table_stats, Create Table, 1);
|
||||
let $create2 = query_get_value(SHOW CREATE TABLE mysql.innodb_index_stats, Create Table, 1);
|
||||
DROP TABLE mysql.innodb_index_stats;
|
||||
DROP TABLE mysql.innodb_table_stats;
|
||||
-- enable_query_log
|
||||
|
||||
CREATE TABLE t(a INT)ENGINE=InnoDB;
|
||||
RENAME TABLE t TO u;
|
||||
DROP TABLE u;
|
||||
@@ -42,3 +50,8 @@ EOF
|
||||
-- exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
-- enable_reconnect
|
||||
-- source include/wait_until_connected_again.inc
|
||||
|
||||
-- disable_query_log
|
||||
USE mysql;
|
||||
eval $create1;
|
||||
eval $create2;
|
||||
|
Reference in New Issue
Block a user