mariadb/mysql-test/suite/tokudb/t/change_column_varbin_cross256.test
Rich Prohaska f66e34d0d7 refs #6440 move change column tests
git-svn-id: file:///svn/mysql/tests/mysql-test@55031 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-03 16:49:00 +00:00

19 lines
No EOL
561 B
Text

--disable_warnings
DROP TABLE IF EXISTS t;
--enable_warnings
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
CREATE TABLE t (a VARBINARY(100), b VARBINARY(256)) ENGINE=TokuDB;
INSERT INTO t VALUES ('hi','there'),('you','people');
# expand varbinary
ALTER TABLE t CHANGE COLUMN a a VARBINARY(256);
SELECT * FROM t;
DROP TABLE t;
CREATE TABLE t (a VARBINARY(100), b VARBINARY(256)) ENGINE=TokuDB;
INSERT INTO t VALUES ('hi','there'),('you','people');
# expand varbinary and rename column
ALTER TABLE t CHANGE COLUMN a a VARBINARY(256);
SELECT * FROM t;
DROP TABLE t;