mariadb/mysql-test/suite/tokudb.alter_table/t/frm_discover.test

27 lines
582 B
Text
Raw Normal View History

# test that tokudb discover on simple tables works when there is an frm mismatch
--disable_warnings
DROP TABLE IF EXISTS foo, bar;
--enable_warnings
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
let $MYSQLD_DATADIR= `SELECT @@datadir`;
CREATE TABLE foo (id INT PRIMARY KEY);
SHOW CREATE TABLE foo;
CREATE TABLE bar LIKE foo;
SHOW CREATE TABLE bar;
ALTER TABLE foo ADD COLUMN a INT;
SHOW CREATE TABLE foo;
FLUSH TABLES;
remove_file $MYSQLD_DATADIR/test/foo.frm;
copy_file $MYSQLD_DATADIR/test/bar.frm $MYSQLD_DATADIR/test/foo.frm;
SHOW CREATE TABLE foo;
DROP TABLE foo, bar;