mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 07:44:22 +01:00
fa56230e72
git-svn-id: file:///svn/mysql/tests/mysql-test@47682 c7de825b-a66e-492c-adef-691d508d4ae1
26 lines
582 B
Text
26 lines
582 B
Text
# 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;
|