mariadb/mysql-test/suite/tokudb.change_column/r/change_bin_pad.result

22 lines
435 B
Text
Raw Normal View History

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;