mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
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:
parent
bb8b5fd668
commit
c9f1e3a90d
6 changed files with 86 additions and 0 deletions
|
@ -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;
|
||||
|
|
6
mysql-test/suite/tokudb.alter_table/r/hcr_enum.result
Normal file
6
mysql-test/suite/tokudb.alter_table/r/hcr_enum.result
Normal 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;
|
18
mysql-test/suite/tokudb.alter_table/r/hcr_time.result
Normal file
18
mysql-test/suite/tokudb.alter_table/r/hcr_time.result
Normal 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;
|
|
@ -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);
|
||||
|
|
10
mysql-test/suite/tokudb.alter_table/t/hcr_enum.test
Normal file
10
mysql-test/suite/tokudb.alter_table/t/hcr_enum.test
Normal 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;
|
34
mysql-test/suite/tokudb.alter_table/t/hcr_time.test
Normal file
34
mysql-test/suite/tokudb.alter_table/t/hcr_time.test
Normal 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;
|
||||
|
Loading…
Reference in a new issue