Commit e2287784 authored by Rich Prohaska's avatar Rich Prohaska

refs #5516 add test cases

git-svn-id: file:///svn/mysql/tests/mysql-test@48717 c7de825b-a66e-492c-adef-691d508d4ae1
parent 26a983a2
...@@ -38,7 +38,7 @@ a33 mediumblob, ...@@ -38,7 +38,7 @@ a33 mediumblob,
a34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs, a34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs,
a35 longblob, a35 longblob,
a36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs a36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs
)engine = TokuDB; );
alter table foo change a1 aa1 int; alter table foo change a1 aa1 int;
alter table foo change a2 aa2 int unsigned; alter table foo change a2 aa2 int unsigned;
alter table foo change a3 aa3 tinyint; alter table foo change a3 aa3 tinyint;
...@@ -58,14 +58,21 @@ alter table foo change a16 aa16 decimal; ...@@ -58,14 +58,21 @@ alter table foo change a16 aa16 decimal;
alter table foo change a17 aa17 date; alter table foo change a17 aa17 date;
alter table foo change a18 aa18 datetime; alter table foo change a18 aa18 datetime;
alter table foo change a19 aa19 timestamp; alter table foo change a19 aa19 timestamp;
alter table foo change a20 aa20 time;
alter table foo change a21 aa21 year; alter table foo change a21 aa21 year;
alter table foo change a22 aa22 binary(100);
alter table foo change a23 aa23 varbinary(100); alter table foo change a23 aa23 varbinary(100);
alter table foo change a24 aa24 varchar(10); alter table foo change a24 aa24 varchar(10);
alter table foo change a25 aa25 varchar(10) CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a25 aa25 varchar(10) CHARACTER SET latin1 COLLATE latin1_general_cs;
alter table foo change a26 aa26 char(10); alter table foo change a26 aa26 char(10);
alter table foo change a27 aa27 char(10) CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a27 aa27 char(10) CHARACTER SET latin1 COLLATE latin1_general_cs;
alter table foo change a28 aa28 ENUM('a','b','c') CHARACTER SET binary;
alter table foo change a29 aa29 tinyblob;
alter table foo change a30 aa30 tinytext CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a30 aa30 tinytext CHARACTER SET latin1 COLLATE latin1_general_cs;
alter table foo change a31 aa31 blob;
alter table foo change a32 aa32 text CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a32 aa32 text CHARACTER SET latin1 COLLATE latin1_general_cs;
alter table foo change a33 aa33 mediumblob;
alter table foo change a34 aa34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a34 aa34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs;
alter table foo change a35 aa35 longblob;
alter table foo change a36 aa36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a36 aa36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs;
drop table foo; drop table foo;
drop table if exists t;
set default_storage_engine='tokudb';
set tokudb_disable_slow_alter=1;
create table t (a char(1));
alter table t change column a aa char(1);
alter table t change column aa a3 char(1) not null;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
drop table if exists t;
set default_storage_engine='tokudb';
set tokudb_disable_slow_alter=1;
create table t (a char(1));
alter table t change column a aa char(1);
alter table t change column aa a3 char(1) not null;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
...@@ -44,7 +44,7 @@ a33 mediumblob, ...@@ -44,7 +44,7 @@ a33 mediumblob,
a34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs, a34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs,
a35 longblob, a35 longblob,
a36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs a36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs
)engine = TokuDB; );
alter table foo change a1 aa1 int; alter table foo change a1 aa1 int;
alter table foo change a2 aa2 int unsigned; alter table foo change a2 aa2 int unsigned;
...@@ -65,22 +65,22 @@ alter table foo change a16 aa16 decimal; ...@@ -65,22 +65,22 @@ alter table foo change a16 aa16 decimal;
alter table foo change a17 aa17 date; alter table foo change a17 aa17 date;
alter table foo change a18 aa18 datetime; alter table foo change a18 aa18 datetime;
alter table foo change a19 aa19 timestamp; alter table foo change a19 aa19 timestamp;
#alter table foo change a20 aa20 time; alter table foo change a20 aa20 time;
alter table foo change a21 aa21 year; alter table foo change a21 aa21 year;
#alter table foo change a22 aa22 binary(100); alter table foo change a22 aa22 binary(100);
alter table foo change a23 aa23 varbinary(100); alter table foo change a23 aa23 varbinary(100);
alter table foo change a24 aa24 varchar(10); alter table foo change a24 aa24 varchar(10);
alter table foo change a25 aa25 varchar(10) CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a25 aa25 varchar(10) CHARACTER SET latin1 COLLATE latin1_general_cs;
alter table foo change a26 aa26 char(10); alter table foo change a26 aa26 char(10);
alter table foo change a27 aa27 char(10) CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a27 aa27 char(10) CHARACTER SET latin1 COLLATE latin1_general_cs;
#alter table foo change a28 aa28 ENUM('a','b','c') CHARACTER SET binary; alter table foo change a28 aa28 ENUM('a','b','c') CHARACTER SET binary;
#alter table foo change a29 aa29 tinyblob; alter table foo change a29 aa29 tinyblob;
alter table foo change a30 aa30 tinytext CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a30 aa30 tinytext CHARACTER SET latin1 COLLATE latin1_general_cs;
#alter table foo change a31 aa31 blob; alter table foo change a31 aa31 blob;
alter table foo change a32 aa32 text CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a32 aa32 text CHARACTER SET latin1 COLLATE latin1_general_cs;
#alter table foo change a33 aa33 mediumblob; alter table foo change a33 aa33 mediumblob;
alter table foo change a34 aa34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a34 aa34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs;
#alter table foo change a35 aa35 longblob; alter table foo change a35 aa35 longblob;
alter table foo change a36 aa36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs; alter table foo change a36 aa36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs;
drop table foo; drop table foo;
\ No newline at end of file
--source include/have_tokudb.inc
--disable_warnings
drop table if exists t;
--enable_warnings
set default_storage_engine='tokudb';
set tokudb_disable_slow_alter=1;
create table t (a char(1));
alter table t change column a aa char(1);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 char(1) not null;
drop table t;
--source include/have_tokudb.inc
--disable_warnings
drop table if exists t;
--enable_warnings
set default_storage_engine='tokudb';
set tokudb_disable_slow_alter=1;
create table t (a char(1));
alter table t change column a aa char(1);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 char(1) not null;
drop table t;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment