mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
4a5d393ece
git-svn-id: file:///svn/mysql/tests/mysql-test@47636 c7de825b-a66e-492c-adef-691d508d4ae1
67 lines
2.3 KiB
Text
67 lines
2.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 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;
|