mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
refs #4363 hcr blobs
git-svn-id: file:///svn/mysql/tests/mysql-test@48712 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
f00943576e
commit
a0a5edbdfb
4 changed files with 226 additions and 0 deletions
39
mysql-test/suite/tokudb.alter_table/r/hcr_blob.result
Normal file
39
mysql-test/suite/tokudb.alter_table/r/hcr_blob.result
Normal file
|
@ -0,0 +1,39 @@
|
|||
drop table if exists t;
|
||||
set default_storage_engine='tokudb';
|
||||
set tokudb_disable_slow_alter=1;
|
||||
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 mediumblob;
|
||||
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
|
||||
drop table t;
|
||||
create table t (a blob);
|
||||
alter table t change column a aa blob;
|
||||
alter table t change column aa a3 tinyblob;
|
||||
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 longblob;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
drop table t;
|
||||
create table t (a mediumblob);
|
||||
alter table t change column a aa mediumblob;
|
||||
alter table t change column aa a3 tinyblob;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
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 longblob;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
drop table t;
|
||||
create table t (a longblob);
|
||||
alter table t change column a aa longblob;
|
||||
alter table t change column aa a3 tinyblob;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
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 mediumblob;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
drop table t;
|
39
mysql-test/suite/tokudb.alter_table/r/hcr_text.result
Normal file
39
mysql-test/suite/tokudb.alter_table/r/hcr_text.result
Normal file
|
@ -0,0 +1,39 @@
|
|||
drop table if exists t;
|
||||
set default_storage_engine='tokudb';
|
||||
set tokudb_disable_slow_alter=1;
|
||||
create table t (a tinytext);
|
||||
alter table t change column a aa tinytext;
|
||||
alter table t change column aa a3 text;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
alter table t change column aa a3 mediumtext;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
alter table t change column aa a3 longtext;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
drop table t;
|
||||
create table t (a text);
|
||||
alter table t change column a aa text;
|
||||
alter table t change column aa a3 tinytext;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
alter table t change column aa a3 mediumtext;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
alter table t change column aa a3 longtext;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
drop table t;
|
||||
create table t (a mediumtext);
|
||||
alter table t change column a aa mediumtext;
|
||||
alter table t change column aa a3 tinytext;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
alter table t change column aa a3 text;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
alter table t change column aa a3 longtext;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
drop table t;
|
||||
create table t (a longtext);
|
||||
alter table t change column a aa longtext;
|
||||
alter table t change column aa a3 tinytext;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
alter table t change column aa a3 text;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
alter table t change column aa a3 mediumtext;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
drop table t;
|
74
mysql-test/suite/tokudb.alter_table/t/hcr_blob.test
Normal file
74
mysql-test/suite/tokudb.alter_table/t/hcr_blob.test
Normal file
|
@ -0,0 +1,74 @@
|
|||
--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 tinyblob);
|
||||
alter table t change column a aa tinyblob;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--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 mediumblob;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 longblob;
|
||||
|
||||
drop table t;
|
||||
|
||||
create table t (a blob);
|
||||
alter table t change column a aa blob;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 tinyblob;
|
||||
|
||||
--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 longblob;
|
||||
|
||||
drop table t;
|
||||
|
||||
create table t (a mediumblob);
|
||||
alter table t change column a aa mediumblob;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 tinyblob;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--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 longblob;
|
||||
|
||||
drop table t;
|
||||
|
||||
create table t (a longblob);
|
||||
alter table t change column a aa longblob;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 tinyblob;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--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 mediumblob;
|
||||
|
||||
drop table t;
|
74
mysql-test/suite/tokudb.alter_table/t/hcr_text.test
Normal file
74
mysql-test/suite/tokudb.alter_table/t/hcr_text.test
Normal file
|
@ -0,0 +1,74 @@
|
|||
--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 tinytext);
|
||||
alter table t change column a aa tinytext;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 text;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 mediumtext;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 longtext;
|
||||
|
||||
drop table t;
|
||||
|
||||
create table t (a text);
|
||||
alter table t change column a aa text;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 tinytext;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 mediumtext;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 longtext;
|
||||
|
||||
drop table t;
|
||||
|
||||
create table t (a mediumtext);
|
||||
alter table t change column a aa mediumtext;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 tinytext;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 text;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 longtext;
|
||||
|
||||
drop table t;
|
||||
|
||||
create table t (a longtext);
|
||||
alter table t change column a aa longtext;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 tinytext;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 text;
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
alter table t change column aa a3 mediumtext;
|
||||
|
||||
drop table t;
|
Loading…
Reference in a new issue