mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 07:44:22 +01:00
27 lines
582 B
Text
27 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;
|