DROP TABLE IF EXISTS t, ti;
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=1;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a VARBINARY(4), b VARBINARY(4), c VARBINARY(4), KEY(b), id INT PRIMARY KEY);
INSERT INTO t VALUES ('a','b','c',1),('d','e','f',2),('g','h','i',3);
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE t CHANGE COLUMN a a VARBINARY(256);
ALTER TABLE ti CHANGE COLUMN a a VARBINARY(256);
SELECT b FROM t;
b
b
e
h
SELECT b FROM ti;
b
b
e
h
INSERT INTO t VALUES ('j','k','l',4);
INSERT INTO ti VALUES ('j','k','l',4);
SELECT b FROM t;
b
b
e
h
k
SELECT b FROM ti;
b
b
e
h
k
include/diff_tables.inc [test.t, test.ti]
DROP TABLE t, ti;
