mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 07:44:22 +01:00
ffdff42b56
git-svn-id: file:///svn/mysql/tests/mysql-test@47665 c7de825b-a66e-492c-adef-691d508d4ae1
131 lines
4.3 KiB
Text
131 lines
4.3 KiB
Text
DROP TABLE IF EXISTS t;
|
|
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
|
|
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
|
|
CREATE TABLE t (a TINYINT DEFAULT 1);
|
|
ALTER TABLE t CHANGE COLUMN a a TINYINT DEFAULT 100;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` tinyint(4) DEFAULT '100'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a SMALLINT DEFAULT 200;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` smallint(6) DEFAULT '200'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a MEDIUMINT DEFAULT 300;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` mediumint(9) DEFAULT '300'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a INT DEFAULT 400;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` int(11) DEFAULT '400'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT DEFAULT 500;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` bigint(20) DEFAULT '500'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
DROP TABLE t;
|
|
CREATE TABLE t (a TINYINT NOT NULL DEFAULT 1);
|
|
ALTER TABLE t CHANGE COLUMN a a TINYINT NOT NULL DEFAULT 100;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` tinyint(4) NOT NULL DEFAULT '100'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a SMALLINT NOT NULL DEFAULT 200;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` smallint(6) NOT NULL DEFAULT '200'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a MEDIUMINT NOT NULL DEFAULT 300;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` mediumint(9) NOT NULL DEFAULT '300'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a INT NOT NULL DEFAULT 400;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` int(11) NOT NULL DEFAULT '400'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT NOT NULL DEFAULT 500;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` bigint(20) NOT NULL DEFAULT '500'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
DROP TABLE t;
|
|
CREATE TABLE t (a TINYINT UNSIGNED DEFAULT 1);
|
|
ALTER TABLE t CHANGE COLUMN a a TINYINT UNSIGNED DEFAULT 100;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` tinyint(3) unsigned DEFAULT '100'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a SMALLINT UNSIGNED DEFAULT 200;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` smallint(5) unsigned DEFAULT '200'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a MEDIUMINT UNSIGNED DEFAULT 300;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` mediumint(8) unsigned DEFAULT '300'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a INT UNSIGNED DEFAULT 400;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` int(10) unsigned DEFAULT '400'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT UNSIGNED DEFAULT 500;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` bigint(20) unsigned DEFAULT '500'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
DROP TABLE t;
|
|
CREATE TABLE t (a TINYINT UNSIGNED NOT NULL DEFAULT 1);
|
|
ALTER TABLE t CHANGE COLUMN a a TINYINT UNSIGNED NOT NULL DEFAULT 100;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` tinyint(3) unsigned NOT NULL DEFAULT '100'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a SMALLINT UNSIGNED NOT NULL DEFAULT 200;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` smallint(5) unsigned NOT NULL DEFAULT '200'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a MEDIUMINT UNSIGNED NOT NULL DEFAULT 300;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` mediumint(8) unsigned NOT NULL DEFAULT '300'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a INT UNSIGNED NOT NULL DEFAULT 400;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` int(10) unsigned NOT NULL DEFAULT '400'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT UNSIGNED NOT NULL DEFAULT 500;
|
|
SHOW CREATE TABLE t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` bigint(20) unsigned NOT NULL DEFAULT '500'
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
DROP TABLE t;
|