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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ca5f9e59
Commit
ca5f9e59
authored
Feb 05, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#177 alter table tests that crash tokudb due to null bytes change
parent
8215f1b0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
230 additions
and
0 deletions
+230
-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
+57
-0
mysql-test/suite/tokudb.alter_table/t/null_bytes_col_rename.test
...est/suite/tokudb.alter_table/t/null_bytes_col_rename.test
+57
-0
mysql-test/suite/tokudb.alter_table/t/null_bytes_drop_default.test
...t/suite/tokudb.alter_table/t/null_bytes_drop_default.test
+57
-0
mysql-test/suite/tokudb.alter_table/t/null_bytes_drop_key.test
...-test/suite/tokudb.alter_table/t/null_bytes_drop_key.test
+59
-0
No files found.
mysql-test/suite/tokudb.alter_table/t/null_bytes_add_key.test
0 → 100644
View file @
ca5f9e59
# simplified test case reduced from an RQG trial that crashes tokudb
# alter drop default breaks the row encoding because mysql changed
# null_bytes on the new table without tokudb's knowledge
source
include
/
have_tokudb
.
inc
;
set
default_storage_engine
=
tokudb
;
disable_warnings
;
drop
table
if
exists
t
;
enable_warnings
;
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
;
UPDATE
t
SET
c27
=
0
;
ALTER
TABLE
t
ROW_FORMAT
=
FIXED
KEY_BLOCK_SIZE
=
1
;
UPDATE
t
SET
c27
=
0
;
ALTER
TABLE
t
ADD
KEY
(
c25
);
UPDATE
t
SET
c27
=
0
;
drop
table
t
;
\ No newline at end of file
mysql-test/suite/tokudb.alter_table/t/null_bytes_col_rename.test
0 → 100644
View file @
ca5f9e59
# simplified test case reduced from an RQG trial that crashes tokudb
# alter drop default breaks the row encoding because mysql changed
# null_bytes on the new table without tokudb's knowledge
source
include
/
have_tokudb
.
inc
;
set
default_storage_engine
=
tokudb
;
disable_warnings
;
drop
table
if
exists
t
;
enable_warnings
;
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
;
UPDATE
t
SET
c27
=
0
;
ALTER
TABLE
t
ROW_FORMAT
=
FIXED
KEY_BLOCK_SIZE
=
1
;
UPDATE
t
SET
c27
=
0
;
ALTER
TABLE
t
CHANGE
COLUMN
c25
x25
char
(
1
);
UPDATE
t
SET
c27
=
0
;
drop
table
t
;
\ No newline at end of file
mysql-test/suite/tokudb.alter_table/t/null_bytes_drop_default.test
0 → 100644
View file @
ca5f9e59
# simplified test case reduced from an RQG trial that crashes tokudb
# alter drop default breaks the row encoding because mysql changed
# null_bytes on the new table without tokudb's knowledge
source
include
/
have_tokudb
.
inc
;
set
default_storage_engine
=
tokudb
;
disable_warnings
;
drop
table
if
exists
t
;
enable_warnings
;
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
;
UPDATE
t
SET
c27
=
0
;
ALTER
TABLE
t
ROW_FORMAT
=
FIXED
KEY_BLOCK_SIZE
=
1
;
UPDATE
t
SET
c27
=
0
;
ALTER
TABLE
t
ALTER
c120
DROP
DEFAULT
;
UPDATE
t
SET
c27
=
0
;
drop
table
t
;
\ No newline at end of file
mysql-test/suite/tokudb.alter_table/t/null_bytes_drop_key.test
0 → 100644
View file @
ca5f9e59
# simplified test case reduced from an RQG trial that crashes tokudb
# alter drop default breaks the row encoding because mysql changed
# null_bytes on the new table without tokudb's knowledge
source
include
/
have_tokudb
.
inc
;
set
default_storage_engine
=
tokudb
;
disable_warnings
;
drop
table
if
exists
t
;
enable_warnings
;
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
;
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
;
ALTER
TABLE
t
DROP
KEY
c25
;
UPDATE
t
SET
c27
=
0
;
drop
table
t
;
\ No newline at end of file
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