mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 07:44:22 +01:00
5932125df3
git-svn-id: file:///svn/mysql/tests/mysql-test@47579 c7de825b-a66e-492c-adef-691d508d4ae1
21 lines
435 B
Text
21 lines
435 B
Text
DROP TABLE IF EXISTS s,t;
|
|
SET DEFAULT_STORAGE_ENGINE='TokuDB';
|
|
CREATE TABLE s (a BINARY(1));
|
|
INSERT INTO s VALUES (1),(2),(3);
|
|
CREATE TABLE t LIKE s;
|
|
INSERT INTO t SELECT * FROM s;
|
|
SET TOKUDB_DISABLE_HOT_ALTER=0;
|
|
ALTER TABLE s CHANGE COLUMN a a BINARY(2);
|
|
SELECT HEX(a) FROM s;
|
|
HEX(a)
|
|
3100
|
|
3200
|
|
3300
|
|
SET TOKUDB_DISABLE_HOT_ALTER=1;
|
|
ALTER TABLE t CHANGE COLUMN a a BINARY(2);
|
|
SELECT HEX(a) FROM t;
|
|
HEX(a)
|
|
3100
|
|
3200
|
|
3300
|
|
DROP TABLE s,t;
|