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
ad974e3b
Commit
ad974e3b
authored
Mar 04, 2015
by
Rik Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB-811 test case for lock tables + add column schema mismatch bug
parent
7a340808
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
0 deletions
+70
-0
mysql-test/suite/tokudb.bugs/r/db811.result
mysql-test/suite/tokudb.bugs/r/db811.result
+14
-0
mysql-test/suite/tokudb.bugs/r/db811s.result
mysql-test/suite/tokudb.bugs/r/db811s.result
+14
-0
mysql-test/suite/tokudb.bugs/t/db811.test
mysql-test/suite/tokudb.bugs/t/db811.test
+21
-0
mysql-test/suite/tokudb.bugs/t/db811s.test
mysql-test/suite/tokudb.bugs/t/db811s.test
+21
-0
No files found.
mysql-test/suite/tokudb.bugs/r/db811.result
0 → 100644
View file @
ad974e3b
drop table if exists t2,t3,t4;
CREATE TABLE t3(a INT,b INT,UNIQUE KEY (a,b)) engine=TOKUDB;
CREATE TABLE t4(c1 FLOAT ZEROFILL) engine=innodb;
CREATE TABLE t2(a int KEY,b CHAR (1)) engine=TOKUDB PARTITION BY HASH (a) PARTITIONS 13;
LOCK TABLES t4 WRITE,t3 WRITE,t2 WRITE;
INSERT INTO t2(a)VALUES (REPEAT(0,1));
ALTER TABLE t2 ADD COLUMN(c INT);
alter table t4 add column c int;
UPDATE t2 SET a=1;
select * from t2;
a b c
1 NULL NULL
unlock tables;
drop table t2,t3,t4;
mysql-test/suite/tokudb.bugs/r/db811s.result
0 → 100644
View file @
ad974e3b
drop table if exists t2,t3,t4;
CREATE TABLE t3(a INT,b INT,UNIQUE KEY (a,b)) engine=TOKUDB;
CREATE TABLE t4(c1 FLOAT ZEROFILL) engine=innodb;
CREATE TABLE t2(a int KEY,b CHAR (1)) engine=TOKUDB PARTITION BY HASH (a) PARTITIONS 1;
LOCK TABLES t4 WRITE,t3 WRITE,t2 WRITE;
INSERT INTO t2(a)VALUES (REPEAT(0,1));
ALTER TABLE t2 ADD COLUMN(c INT);
alter table t4 add column c int;
UPDATE t2 SET a=1;
select * from t2;
a b c
1 NULL NULL
unlock tables;
drop table t2,t3,t4;
mysql-test/suite/tokudb.bugs/t/db811.test
0 → 100644
View file @
ad974e3b
# DB-811 test that alter table t2 updates both the schema (FRM) and the data (tokudb files)
source
include
/
have_tokudb
.
inc
;
source
include
/
have_innodb
.
inc
;
disable_warnings
;
drop
table
if
exists
t2
,
t3
,
t4
;
enable_warnings
;
CREATE
TABLE
t3
(
a
INT
,
b
INT
,
UNIQUE
KEY
(
a
,
b
))
engine
=
TOKUDB
;
CREATE
TABLE
t4
(
c1
FLOAT
ZEROFILL
)
engine
=
innodb
;
CREATE
TABLE
t2
(
a
int
KEY
,
b
CHAR
(
1
))
engine
=
TOKUDB
PARTITION
BY
HASH
(
a
)
PARTITIONS
13
;
LOCK
TABLES
t4
WRITE
,
t3
WRITE
,
t2
WRITE
;
INSERT
INTO
t2
(
a
)
VALUES
(
REPEAT
(
0
,
1
));
ALTER
TABLE
t2
ADD
COLUMN
(
c
INT
);
alter
table
t4
add
column
c
int
;
UPDATE
t2
SET
a
=
1
;
select
*
from
t2
;
unlock
tables
;
drop
table
t2
,
t3
,
t4
;
mysql-test/suite/tokudb.bugs/t/db811s.test
0 → 100644
View file @
ad974e3b
# DB-811 test that alter table t2 updates both the schema (FRM) and the data (tokudb files)
source
include
/
have_tokudb
.
inc
;
source
include
/
have_innodb
.
inc
;
disable_warnings
;
drop
table
if
exists
t2
,
t3
,
t4
;
enable_warnings
;
CREATE
TABLE
t3
(
a
INT
,
b
INT
,
UNIQUE
KEY
(
a
,
b
))
engine
=
TOKUDB
;
CREATE
TABLE
t4
(
c1
FLOAT
ZEROFILL
)
engine
=
innodb
;
CREATE
TABLE
t2
(
a
int
KEY
,
b
CHAR
(
1
))
engine
=
TOKUDB
PARTITION
BY
HASH
(
a
)
PARTITIONS
1
;
LOCK
TABLES
t4
WRITE
,
t3
WRITE
,
t2
WRITE
;
INSERT
INTO
t2
(
a
)
VALUES
(
REPEAT
(
0
,
1
));
ALTER
TABLE
t2
ADD
COLUMN
(
c
INT
);
alter
table
t4
add
column
c
int
;
UPDATE
t2
SET
a
=
1
;
select
*
from
t2
;
unlock
tables
;
drop
table
t2
,
t3
,
t4
;
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