Commit c9f1e3a9 authored by Rich Prohaska's avatar Rich Prohaska

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
parent bb8b5fd6
......@@ -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;
......
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;
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;
......@@ -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);
......
--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;
\ 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 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;
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