mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +01:00
efab096462
git-svn-id: file:///svn/mysql/tests/mysql-test@47481 c7de825b-a66e-492c-adef-691d508d4ae1
19 lines
No EOL
545 B
Text
19 lines
No EOL
545 B
Text
--disable_warnings
|
|
DROP TABLE IF EXISTS t;
|
|
--enable_warnings
|
|
|
|
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
|
|
|
|
CREATE TABLE t (a VARCHAR(100), b VARCHAR(256)) ENGINE=TokuDB;
|
|
INSERT INTO t VALUES ('hi','there'),('you','people');
|
|
# expand varchar
|
|
ALTER TABLE t CHANGE COLUMN a a VARCHAR(256);
|
|
SELECT * FROM t;
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a VARCHAR(100), b VARCHAR(256)) ENGINE=TokuDB;
|
|
INSERT INTO t VALUES ('hi','there'),('you','people');
|
|
# expand varchar and rename column
|
|
ALTER TABLE t CHANGE COLUMN a a VARCHAR(256);
|
|
SELECT * FROM t;
|
|
DROP TABLE t; |