mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
refs #5516 add test cases
git-svn-id: file:///svn/mysql/tests/mysql-test@48717 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
26a983a249
commit
e228778421
6 changed files with 64 additions and 9 deletions
|
@ -38,7 +38,7 @@ a33 mediumblob,
|
|||
a34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs,
|
||||
a35 longblob,
|
||||
a36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs
|
||||
)engine = TokuDB;
|
||||
);
|
||||
alter table foo change a1 aa1 int;
|
||||
alter table foo change a2 aa2 int unsigned;
|
||||
alter table foo change a3 aa3 tinyint;
|
||||
|
@ -58,14 +58,21 @@ alter table foo change a16 aa16 decimal;
|
|||
alter table foo change a17 aa17 date;
|
||||
alter table foo change a18 aa18 datetime;
|
||||
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 a22 aa22 binary(100);
|
||||
alter table foo change a23 aa23 varbinary(100);
|
||||
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 a26 aa26 char(10);
|
||||
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 a31 aa31 blob;
|
||||
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 a35 aa35 longblob;
|
||||
alter table foo change a36 aa36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs;
|
||||
drop table foo;
|
||||
|
|
8
mysql-test/suite/tokudb.alter_table/r/hcr_binary1.result
Normal file
8
mysql-test/suite/tokudb.alter_table/r/hcr_binary1.result
Normal file
|
@ -0,0 +1,8 @@
|
|||
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;
|
8
mysql-test/suite/tokudb.alter_table/r/hcr_char1.result
Normal file
8
mysql-test/suite/tokudb.alter_table/r/hcr_char1.result
Normal file
|
@ -0,0 +1,8 @@
|
|||
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,
|
|||
a34 mediumtext CHARACTER SET latin1 COLLATE latin1_general_cs,
|
||||
a35 longblob,
|
||||
a36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs
|
||||
)engine = TokuDB;
|
||||
);
|
||||
|
||||
alter table foo change a1 aa1 int;
|
||||
alter table foo change a2 aa2 int unsigned;
|
||||
|
@ -65,22 +65,22 @@ alter table foo change a16 aa16 decimal;
|
|||
alter table foo change a17 aa17 date;
|
||||
alter table foo change a18 aa18 datetime;
|
||||
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 a22 aa22 binary(100);
|
||||
alter table foo change a22 aa22 binary(100);
|
||||
alter table foo change a23 aa23 varbinary(100);
|
||||
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 a26 aa26 char(10);
|
||||
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 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 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 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 a35 aa35 longblob;
|
||||
alter table foo change a35 aa35 longblob;
|
||||
alter table foo change a36 aa36 longtext CHARACTER SET latin1 COLLATE latin1_general_cs;
|
||||
|
||||
drop table foo;
|
16
mysql-test/suite/tokudb.alter_table/t/hcr_binary1.test
Normal file
16
mysql-test/suite/tokudb.alter_table/t/hcr_binary1.test
Normal file
|
@ -0,0 +1,16 @@
|
|||
--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;
|
16
mysql-test/suite/tokudb.alter_table/t/hcr_char1.test
Normal file
16
mysql-test/suite/tokudb.alter_table/t/hcr_char1.test
Normal file
|
@ -0,0 +1,16 @@
|
|||
--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;
|
Loading…
Reference in a new issue