Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e43c10cf
Commit
e43c10cf
authored
Feb 05, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#177 add result files for alter table tests that crash tokudb due to null bytes change
parent
a99499b6
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
241 additions
and
3 deletions
+241
-3
mysql-test/suite/tokudb.alter_table/r/null_bytes_add_key.result
...test/suite/tokudb.alter_table/r/null_bytes_add_key.result
+54
-0
mysql-test/suite/tokudb.alter_table/r/null_bytes_col_rename.result
...t/suite/tokudb.alter_table/r/null_bytes_col_rename.result
+54
-0
mysql-test/suite/tokudb.alter_table/r/null_bytes_drop_default.result
...suite/tokudb.alter_table/r/null_bytes_drop_default.result
+54
-0
mysql-test/suite/tokudb.alter_table/r/null_bytes_drop_key.result
...est/suite/tokudb.alter_table/r/null_bytes_drop_key.result
+56
-0
mysql-test/suite/tokudb.alter_table/t/null_bytes_add_key.test
...l-test/suite/tokudb.alter_table/t/null_bytes_add_key.test
+6
-1
mysql-test/suite/tokudb.alter_table/t/null_bytes_col_rename.test
...est/suite/tokudb.alter_table/t/null_bytes_col_rename.test
+6
-1
mysql-test/suite/tokudb.alter_table/t/null_bytes_drop_default.test
...t/suite/tokudb.alter_table/t/null_bytes_drop_default.test
+5
-0
mysql-test/suite/tokudb.alter_table/t/null_bytes_drop_key.test
...-test/suite/tokudb.alter_table/t/null_bytes_drop_key.test
+6
-1
No files found.
mysql-test/suite/tokudb.alter_table/r/null_bytes_add_key.result
0 → 100644
View file @
e43c10cf
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;
mysql-test/suite/tokudb.alter_table/r/null_bytes_col_rename.result
0 → 100644
View file @
e43c10cf
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;
mysql-test/suite/tokudb.alter_table/r/null_bytes_drop_default.result
0 → 100644
View file @
e43c10cf
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;
mysql-test/suite/tokudb.alter_table/r/null_bytes_drop_key.result
0 → 100644
View file @
e43c10cf
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;
mysql-test/suite/tokudb.alter_table/t/null_bytes_add_key.test
View file @
e43c10cf
# simplified test case reduced from an RQG trial that crashes tokudb
# simplified test case reduced from an RQG trial that crashes tokudb
# a
lter drop default
breaks the row encoding because mysql changed
# a
dding 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
;
...
...
mysql-test/suite/tokudb.alter_table/t/null_bytes_col_rename.test
View file @
e43c10cf
# 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
;
...
...
mysql-test/suite/tokudb.alter_table/t/null_bytes_drop_default.test
View file @
e43c10cf
...
@@ -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
;
...
...
mysql-test/suite/tokudb.alter_table/t/null_bytes_drop_key.test
View file @
e43c10cf
# 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment