-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'tokudb-engine/tokudb-7.5.7' into 5.5
- Loading branch information
Showing
24 changed files
with
262 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
drop table if exists t1,t3; | ||
create table t3(a3 int,b3 decimal(0,0),c3 int,d3 int,primary key(a3,b3)) engine=TOKUDB; | ||
LOCK TABLES t3 WRITE; | ||
create temporary table t1(f1 int,index(f1)) engine=innodb; | ||
INSERT INTO t1 VALUES(1),(1),(1); | ||
select * from t1; | ||
f1 | ||
1 | ||
1 | ||
1 | ||
ALTER TABLE t1 engine=TOKUDB; | ||
select * from t1; | ||
f1 | ||
1 | ||
1 | ||
1 | ||
unlock tables; | ||
drop table t1,t3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
drop table if exists t1,t3; | ||
CREATE TABLE t3(a int,c int,d int)engine=TOKUDB; | ||
lock table t3 read; | ||
create temporary table t1 engine=tokudb as SELECT 1; | ||
select * from t1; | ||
1 | ||
1 | ||
unlock tables; | ||
drop table t1,t3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
drop table if exists s,t; | ||
create table s (id int) engine=tokudb; | ||
lock tables s write; | ||
create temporary table t (id int, key(id)) engine=innodb; | ||
insert into t values (1); | ||
alter table t engine=tokudb; | ||
select * from t; | ||
id | ||
1 | ||
unlock tables; | ||
drop table s, t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# DB-805 test that conversion of t1 from innodb to tokudb can write rows | ||
source include/have_tokudb.inc; | ||
source include/have_innodb.inc; | ||
disable_warnings; | ||
drop table if exists t1,t3; | ||
enable_warnings; | ||
|
||
create table t3(a3 int,b3 decimal(0,0),c3 int,d3 int,primary key(a3,b3)) engine=TOKUDB; | ||
LOCK TABLES t3 WRITE; | ||
create temporary table t1(f1 int,index(f1)) engine=innodb; | ||
INSERT INTO t1 VALUES(1),(1),(1); | ||
select * from t1; | ||
ALTER TABLE t1 engine=TOKUDB; | ||
select * from t1; | ||
unlock tables; | ||
|
||
drop table t1,t3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# DB-806 test that lock tables and create select can write rows to the new table | ||
source include/have_tokudb.inc; | ||
disable_warnings; | ||
drop table if exists t1,t3; | ||
enable_warnings; | ||
|
||
CREATE TABLE t3(a int,c int,d int)engine=TOKUDB; | ||
lock table t3 read; | ||
create temporary table t1 engine=tokudb as SELECT 1; | ||
select * from t1; | ||
unlock tables; | ||
|
||
drop table t1,t3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 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; | ||
source include/have_partition.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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 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; | ||
source include/have_partition.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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# test DB-823 | ||
# test that the conversion of table t from innodb to tokudb succeeds. | ||
source include/have_tokudb.inc; | ||
source include/have_innodb.inc; | ||
disable_warnings; | ||
drop table if exists s,t; | ||
enable_warnings; | ||
create table s (id int) engine=tokudb; | ||
lock tables s write; | ||
create temporary table t (id int, key(id)) engine=innodb; | ||
insert into t values (1); | ||
alter table t engine=tokudb; | ||
select * from t; | ||
unlock tables; | ||
drop table s, t; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.