mariadb/mysql-test/suite/tokudb.alter_table/r/other_alter.result
Rich Prohaska 0eb082c19e #4623 change ENGINE=TOKUDB to ENGINE=TokuDB in the common tokudb test result files refs[t:4623]
git-svn-id: file:///svn/mysql/tests/mysql-test@40974 c7de825b-a66e-492c-adef-691d508d4ae1
2012-03-19 15:01:11 +00:00

119 lines
7.3 KiB
Text

SET STORAGE_ENGINE='tokudb';
DROP TABLE IF EXISTS foo,bar;
set session tokudb_disable_slow_alter=ON;
create table foo (aa int, bb int, cc int, dd int, ee int, a int, b varchar(20), c int, d int, e int, primary key (e), key(d), unique key(c), clustering key (b))engine=TokuDB;
create table bar (a int) engine=TokuDB;
alter table foo drop primary key;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo drop primary key, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo drop primary key, drop column aa;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table bar add primary key (a);
ERROR 42000: Table 'bar' uses an extension that doesn't exist in this MySQL version
alter table bar add primary key (a), add column z int;
ERROR 42000: Table 'bar' uses an extension that doesn't exist in this MySQL version
alter table foo drop primary key, add primary key (b);
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo drop primary key, add primary key (b), add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo drop primary key, add primary key (b), drop column aa;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo add fulltext key(b);
ERROR HY000: The used table type doesn't support FULLTEXT indexes
alter table foo add spatial key (aa);
ERROR HY000: The used table type doesn't support SPATIAL indexes
alter table foo alter column cc set default 101010;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo alter column cc set default NULL;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo alter column cc drop default;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo alter column cc set default 101010, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo alter column cc set default NULL, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo alter column cc drop default, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo alter column cc set default 101010, drop column aa;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo alter column cc set default NULL, drop column aa;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo alter column cc drop default, drop column aa;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aaa int, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column e epk int, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aaa int, drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column e epk int, drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
show create table foo;
Table Create Table
foo CREATE TABLE `foo` (
`aa` int(11) DEFAULT NULL,
`bb` int(11) DEFAULT NULL,
`cc` int(11) DEFAULT NULL,
`dd` int(11) DEFAULT NULL,
`ee` int(11) DEFAULT NULL,
`a` int(11) DEFAULT NULL,
`b` varchar(20) DEFAULT NULL,
`c` int(11) DEFAULT NULL,
`d` int(11) DEFAULT NULL,
`e` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`e`),
UNIQUE KEY `c` (`c`),
KEY `d` (`d`),
CLUSTERING KEY `b` (`b`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
alter table foo change column aa aa int NOT NULL;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa bigint;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa varchar(20);
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa int after cc;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa int NOT NULL;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa bigint;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa varchar(20);
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa int after cc;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa int NOT NULL, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa bigint, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa varchar(20), add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa int after cc, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa int NOT NULL, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa bigint, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa varchar(20), add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa int after cc, add column z int;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa int NOT NULL, drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa bigint, drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa varchar(20), drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo change column aa aa int after cc, drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa int NOT NULL, drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa bigint, drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa varchar(20), drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
alter table foo modify column aa int after cc, drop column bb;
ERROR 42000: Table 'foo' uses an extension that doesn't exist in this MySQL version
drop table foo;
drop table bar;