mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
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:
parent
2a8837b08a
commit
2736f574fd
1 changed files with 14 additions and 0 deletions
|
@ -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;
|
Loading…
Reference in a new issue