refs #4363 tests for hcr rename blob, enum, and time types

git-svn-id: file:///svn/mysql/tests/mysql-test@48713 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2012-10-08 17:44:25 +00:00
parent bb8b5fd668
commit c9f1e3a90d
6 changed files with 86 additions and 0 deletions

View file

@ -5,10 +5,16 @@ create table t (a tinyblob);
alter table t change column a aa tinyblob;
alter table t change column aa a3 blob;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
alter table t change column aa a3 blob not null;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
alter table t change column aa a3 mediumblob;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
alter table t change column aa a3 mediumblob not null;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
alter table t change column aa a3 longblob;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
alter table t change column aa a3 longblob not null;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
create table t (a blob);
alter table t change column a aa blob;

View file

@ -0,0 +1,6 @@
drop table if exists t;
set default_storage_engine='tokudb';
set tokudb_disable_slow_alter=1;
create table t (a enum ('a','b','c'));
alter table t change column a aa enum('a','b','c');
drop table t;

View file

@ -0,0 +1,18 @@
drop table if exists t;
set default_storage_engine='tokudb';
set tokudb_disable_slow_alter=1;
create table t (a timestamp null);
alter table t change column a aa timestamp null;
alter table t change column aa a3 timestamp not null;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
create table t (a date);
alter table t change column a aa date;
alter table t change column aa a3 date not null;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
create table t (a datetime);
alter table t change column a aa datetime;
alter table t change column aa a3 datetime not null;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;

View file

@ -12,14 +12,26 @@ alter table t change column a aa tinyblob;
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 blob;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 blob not null;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 mediumblob;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 mediumblob not null;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 longblob;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 longblob not null;
drop table t;
create table t (a blob);

View file

@ -0,0 +1,10 @@
--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 enum ('a','b','c'));
alter table t change column a aa enum('a','b','c');
drop table t;

View file

@ -0,0 +1,34 @@
--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 timestamp null);
alter table t change column a aa timestamp null;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 timestamp not null;
drop table t;
create table t (a date);
alter table t change column a aa date;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 date not null;
drop table t;
create table t (a datetime);
alter table t change column a aa datetime;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
alter table t change column aa a3 datetime not null;
drop table t;