Commit e43c10cf authored by Rich Prohaska's avatar Rich Prohaska

#177 add result files for alter table tests that crash tokudb due to null bytes change

parent a99499b6
set default_storage_engine=tokudb;
drop table if exists t;
CREATE TABLE t (
c25 char(1),
c277 int,
c195 int unsigned,
c129 char(1),
c196 int unsigned,
c58 date,
c7 varchar(1),
c121 varchar(1),
c21 char(1),
c56 date,
c2 varchar(1),
c12 varchar(1),
c13 char(1),
c14 int,
c15 date,
c16 char(1),
c17 varchar(1),
c18 int unsigned,
c120 varchar(1),
c19 varchar(1),
c5 varchar(1),
c22 char(1),
c9 varchar(1),
c23 char(1),
c28 char(1),
c279 int unsigned,
c26 char(1),
c27 varchar(1),
c24 char(1),
c193 int,
c29 date,
c30 varchar(1),
c194 int,
c31 date,
key(c31)) ENGINE=tokudb;
INSERT INTO t (c25) VALUES (NULL);
UPDATE t SET c27=0;
ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH;
Warnings:
Warning 1265 Data truncated for column 'c19' at row 1
UPDATE t SET c27=0;
ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1;
UPDATE t SET c27=0;
set tokudb_disable_hot_alter=0;
set tokudb_disable_slow_alter=1;
ALTER TABLE t ADD KEY (c25);
ERROR 42000: Table 't' uses an extension that doesn't exist in this MySQL version
set tokudb_disable_slow_alter=0;
ALTER TABLE t ADD KEY (c25);
UPDATE t SET c27=0;
drop table t;
set default_storage_engine=tokudb;
drop table if exists t;
CREATE TABLE t (
c25 char(1),
c277 int,
c195 int unsigned,
c129 char(1),
c196 int unsigned,
c58 date,
c7 varchar(1),
c121 varchar(1),
c21 char(1),
c56 date,
c2 varchar(1),
c12 varchar(1),
c13 char(1),
c14 int,
c15 date,
c16 char(1),
c17 varchar(1),
c18 int unsigned,
c120 varchar(1),
c19 varchar(1),
c5 varchar(1),
c22 char(1),
c9 varchar(1),
c23 char(1),
c28 char(1),
c279 int unsigned,
c26 char(1),
c27 varchar(1),
c24 char(1),
c193 int,
c29 date,
c30 varchar(1),
c194 int,
c31 date,
key(c31)) ENGINE=tokudb;
INSERT INTO t (c25) VALUES (NULL);
UPDATE t SET c27=0;
ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH;
Warnings:
Warning 1265 Data truncated for column 'c19' at row 1
UPDATE t SET c27=0;
ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1;
UPDATE t SET c27=0;
set tokudb_disable_hot_alter=0;
set tokudb_disable_slow_alter=1;
ALTER TABLE t CHANGE COLUMN c25 x25 char(1);
ERROR 42000: Table 't' uses an extension that doesn't exist in this MySQL version
set tokudb_disable_slow_alter=0;
ALTER TABLE t CHANGE COLUMN c25 x25 char(1);
UPDATE t SET c27=0;
drop table t;
set default_storage_engine=tokudb;
drop table if exists t;
CREATE TABLE t (
c25 char(1),
c277 int,
c195 int unsigned,
c129 char(1),
c196 int unsigned,
c58 date,
c7 varchar(1),
c121 varchar(1),
c21 char(1),
c56 date,
c2 varchar(1),
c12 varchar(1),
c13 char(1),
c14 int,
c15 date,
c16 char(1),
c17 varchar(1),
c18 int unsigned,
c120 varchar(1),
c19 varchar(1),
c5 varchar(1),
c22 char(1),
c9 varchar(1),
c23 char(1),
c28 char(1),
c279 int unsigned,
c26 char(1),
c27 varchar(1),
c24 char(1),
c193 int,
c29 date,
c30 varchar(1),
c194 int,
c31 date,
key(c31)) ENGINE=tokudb;
INSERT INTO t (c25) VALUES (NULL);
UPDATE t SET c27=0;
ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH;
Warnings:
Warning 1265 Data truncated for column 'c19' at row 1
UPDATE t SET c27=0;
ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1;
UPDATE t SET c27=0;
set tokudb_disable_hot_alter=0;
set tokudb_disable_slow_alter=1;
ALTER TABLE t ALTER c120 DROP DEFAULT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this MySQL version
set tokudb_disable_slow_alter=0;
ALTER TABLE t ALTER c120 DROP DEFAULT;
UPDATE t SET c27=0;
drop table t;
set default_storage_engine=tokudb;
drop table if exists t;
CREATE TABLE t (
c25 char(1),
c277 int,
c195 int unsigned,
c129 char(1),
c196 int unsigned,
c58 date,
c7 varchar(1),
c121 varchar(1),
c21 char(1),
c56 date,
c2 varchar(1),
c12 varchar(1),
c13 char(1),
c14 int,
c15 date,
c16 char(1),
c17 varchar(1),
c18 int unsigned,
c120 varchar(1),
c19 varchar(1),
c5 varchar(1),
c22 char(1),
c9 varchar(1),
c23 char(1),
c28 char(1),
c279 int unsigned,
c26 char(1),
c27 varchar(1),
c24 char(1),
c193 int,
c29 date,
c30 varchar(1),
c194 int,
c31 date,
key(c31)) ENGINE=tokudb;
INSERT INTO t (c25) VALUES (NULL);
UPDATE t SET c27=0;
ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH;
Warnings:
Warning 1265 Data truncated for column 'c19' at row 1
UPDATE t SET c27=0;
ALTER TABLE t ADD KEY (c25);
UPDATE t SET c27=0;
ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1;
UPDATE t SET c27=0;
set tokudb_disable_hot_alter=0;
set tokudb_disable_slow_alter=1;
ALTER TABLE t DROP KEY c25;
ERROR 42000: Table 't' uses an extension that doesn't exist in this MySQL version
set tokudb_disable_slow_alter=0;
ALTER TABLE t DROP KEY c25;
UPDATE t SET c27=0;
drop table t;
# simplified test case reduced from an RQG trial that crashes tokudb # simplified test case reduced from an RQG trial that crashes tokudb
# alter drop default breaks the row encoding because mysql changed # adding a key breaks the row encoding because mysql changed
# null_bytes on the new table without tokudb's knowledge # null_bytes on the new table without tokudb's knowledge
source include/have_tokudb.inc; source include/have_tokudb.inc;
...@@ -51,6 +51,11 @@ ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH; ...@@ -51,6 +51,11 @@ ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH;
UPDATE t SET c27=0; UPDATE t SET c27=0;
ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1; ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1;
UPDATE t SET c27=0; UPDATE t SET c27=0;
set tokudb_disable_hot_alter=0;
set tokudb_disable_slow_alter=1;
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t ADD KEY (c25);
set tokudb_disable_slow_alter=0;
ALTER TABLE t ADD KEY (c25); ALTER TABLE t ADD KEY (c25);
UPDATE t SET c27=0; UPDATE t SET c27=0;
......
# simplified test case reduced from an RQG trial that crashes tokudb # simplified test case reduced from an RQG trial that crashes tokudb
# alter drop default breaks the row encoding because mysql changed # alter rename column breaks the row encoding because mysql changed
# null_bytes on the new table without tokudb's knowledge # null_bytes on the new table without tokudb's knowledge
source include/have_tokudb.inc; source include/have_tokudb.inc;
...@@ -51,6 +51,11 @@ ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH; ...@@ -51,6 +51,11 @@ ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH;
UPDATE t SET c27=0; UPDATE t SET c27=0;
ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1; ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1;
UPDATE t SET c27=0; UPDATE t SET c27=0;
set tokudb_disable_hot_alter=0;
set tokudb_disable_slow_alter=1;
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN c25 x25 char(1);
set tokudb_disable_slow_alter=0;
ALTER TABLE t CHANGE COLUMN c25 x25 char(1); ALTER TABLE t CHANGE COLUMN c25 x25 char(1);
UPDATE t SET c27=0; UPDATE t SET c27=0;
......
...@@ -51,6 +51,11 @@ ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH; ...@@ -51,6 +51,11 @@ ALTER TABLE t ADD PRIMARY KEY(c19,c27)USING HASH;
UPDATE t SET c27=0; UPDATE t SET c27=0;
ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1; ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1;
UPDATE t SET c27=0; UPDATE t SET c27=0;
set tokudb_disable_hot_alter=0;
set tokudb_disable_slow_alter=1;
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t ALTER c120 DROP DEFAULT;
set tokudb_disable_slow_alter=0;
ALTER TABLE t ALTER c120 DROP DEFAULT; ALTER TABLE t ALTER c120 DROP DEFAULT;
UPDATE t SET c27=0; UPDATE t SET c27=0;
......
# simplified test case reduced from an RQG trial that crashes tokudb # simplified test case reduced from an RQG trial that crashes tokudb
# alter drop default breaks the row encoding because mysql changed # dropping a key breaks the row encoding because mysql changed
# null_bytes on the new table without tokudb's knowledge # null_bytes on the new table without tokudb's knowledge
source include/have_tokudb.inc; source include/have_tokudb.inc;
...@@ -53,6 +53,11 @@ ALTER TABLE t ADD KEY (c25); ...@@ -53,6 +53,11 @@ ALTER TABLE t ADD KEY (c25);
UPDATE t SET c27=0; UPDATE t SET c27=0;
ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1; ALTER TABLE t ROW_FORMAT=FIXED KEY_BLOCK_SIZE=1;
UPDATE t SET c27=0; UPDATE t SET c27=0;
set tokudb_disable_hot_alter=0;
set tokudb_disable_slow_alter=1;
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t DROP KEY c25;
set tokudb_disable_slow_alter=0;
ALTER TABLE t DROP KEY c25; ALTER TABLE t DROP KEY c25;
UPDATE t SET c27=0; UPDATE t SET c27=0;
......
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