refs #5510 get varchar expansion with prefix keys working in mysql 5.6.7

git-svn-id: file:///svn/mysql/tests/mysql-test@48517 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2012-10-02 14:52:16 +00:00
parent 2a8837b08a
commit 2736f574fd

View file

@ -0,0 +1,14 @@
DROP TABLE IF EXISTS t;
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a VARCHAR(32), b VARCHAR(32), KEY(a(2)));
SHOW CREATE TABLE t;
Table Create Table
t CREATE TABLE `t` (
`a` varchar(32) DEFAULT NULL,
`b` varchar(32) DEFAULT NULL,
KEY `a` (`a`(2))
) ENGINE=TokuDB DEFAULT CHARSET=latin1
ALTER TABLE t CHANGE COLUMN b b VARCHAR(100);
ALTER TABLE t CHANGE COLUMN b b VARCHAR(256);
DROP TABLE t;