mariadb/mysql-test/suite/tokudb.change_column/r/change_bin_pad.result
Rich Prohaska 5932125df3 refs #5333 char and bin expansion test cases
git-svn-id: file:///svn/mysql/tests/mysql-test@47579 c7de825b-a66e-492c-adef-691d508d4ae1
2012-09-07 18:41:06 +00:00

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;