Skip to content

Commit 2c8c652

Browse files
committed
5.6.26-74.0
0 parents  commit 2c8c652

File tree

2,948 files changed

+2651930
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,948 files changed

+2651930
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
DROP TABLE IF EXISTS t1;
3+
create table t1 (a int, b int) engine=tokudb;
4+
insert into t1 values (1,1),(1,2),(2,1),(2,2);
5+
select count(*) from t1 where b > 0;
6+
count(*)
7+
4
8+
alter table t1 add clustering index b(b);
9+
explain select count(*) from t1 where b > 0;
10+
id select_type table type possible_keys key key_len ref rows Extra
11+
1 SIMPLE t1 NA b b 5 NA NA NA
12+
select count(*) from t1 where b > 0;
13+
count(*)
14+
4
15+
DROP TABLE t1;
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
*** Bug #22169 ***
3+
DROP TABLE IF EXISTS t1;
4+
CREATE TABLE t1 (a int, str varchar(3), b int, c int, z int, y int, x int, r int, s int, t int, d char(4), primary key (a,b), key (z), key(x), key(t));
5+
id select_type table type possible_keys key key_len ref rows Extra
6+
1 SIMPLE t1 NULL foo foo NULL NULL NULL; Using where; Using index
7+
c r
8+
0 20
9+
2 18
10+
4 16
11+
6 14
12+
8 12
13+
10 10
14+
12 8
15+
14 6
16+
16 4
17+
18 2
18+
id select_type table type possible_keys key key_len ref rows Extra
19+
1 SIMPLE t1 NULL foo foo NULL NULL NULL; Using where; Using index
20+
c r a b
21+
0 20 10 0
22+
2 18 9 1
23+
4 16 8 2
24+
6 14 7 3
25+
8 12 6 4
26+
10 10 5 5
27+
12 8 4 6
28+
14 6 3 7
29+
16 4 2 8
30+
18 2 1 9
31+
id select_type table type possible_keys key key_len ref rows Extra
32+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
33+
a str b c z y x r s t d
34+
1 s 9 18 10 100 1000 2 3 4 AB
35+
2 s 8 16 20 200 2000 4 6 8 AB
36+
3 s 7 14 30 300 3000 6 9 12 AB
37+
4 s 6 12 40 400 4000 8 12 16 AB
38+
5 s 5 10 50 500 5000 10 15 20 AB
39+
6 s 4 8 60 600 6000 12 18 24 AB
40+
7 s 3 6 70 700 7000 14 21 28 AB
41+
8 s 2 4 80 800 8000 16 24 32 AB
42+
9 s 1 2 90 900 9000 18 27 36 AB
43+
10 s 0 0 100 1000 10000 20 30 40 AB
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
*** Bug #22169 ***
3+
DROP TABLE IF EXISTS t1;
4+
CREATE TABLE t1 (a int, b int, c int, z int, y int, x int, r int, s int, t int, key (z), key(x), key(t));
5+
ERROR 23000: Can't write; duplicate key in table 't1'
6+
a b c z y x r s t
7+
1 9 18 10 100 1000 2 3 4
8+
2 8 16 20 200 2000 4 6 8
9+
3 7 14 30 300 3000 6 9 12
10+
4 6 12 40 400 4000 8 12 16
11+
5 5 10 50 500 5000 10 15 20
12+
6 4 8 60 600 6000 12 18 24
13+
7 3 6 70 700 7000 14 21 28
14+
8 2 4 80 800 8000 16 24 32
15+
9 1 2 90 900 9000 18 27 36
16+
10 0 0 100 1000 10000 20 30 40
17+
5 52 18 5 5 5 2 5 5
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
*** Bug #22169 ***
3+
DROP TABLE IF EXISTS t1;
4+
CREATE TABLE t1 (a int, str varchar(3), b int, c int, z int, y int, x int, r int, s int, t int, d char(4), key (z), key(x), key(t));
5+
id select_type table type possible_keys key key_len ref rows Extra
6+
1 SIMPLE t1 NULL foo foo NULL NULL NULL; Using where; Using index
7+
c r
8+
0 20
9+
2 18
10+
4 16
11+
6 14
12+
8 12
13+
10 10
14+
12 8
15+
14 6
16+
16 4
17+
18 2
18+
id select_type table type possible_keys key key_len ref rows Extra
19+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
20+
a str b c z y x r s t d
21+
1 s 9 18 10 100 1000 2 3 4 AB
22+
2 s 8 16 20 200 2000 4 6 8 AB
23+
3 s 7 14 30 300 3000 6 9 12 AB
24+
4 s 6 12 40 400 4000 8 12 16 AB
25+
5 s 5 10 50 500 5000 10 15 20 AB
26+
6 s 4 8 60 600 6000 12 18 24 AB
27+
7 s 3 6 70 700 7000 14 21 28 AB
28+
8 s 2 4 80 800 8000 16 24 32 AB
29+
9 s 1 2 90 900 9000 18 27 36 AB
30+
10 s 0 0 100 1000 10000 20 30 40 AB
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
*** Bug #22169 ***
3+
DROP TABLE IF EXISTS t1;
4+
CREATE TABLE t1 (a int, b int, c int, z int, y int, x int, r int, s int, t int,key (z), key(x), key(t));
5+
id select_type table type possible_keys key key_len ref rows Extra
6+
1 SIMPLE t1 NULL foo foo NULL NULL NULL; Using where; Using index
7+
c r
8+
0 20
9+
2 18
10+
4 16
11+
6 14
12+
8 12
13+
10 10
14+
12 8
15+
14 6
16+
16 4
17+
18 2
18+
id select_type table type possible_keys key key_len ref rows Extra
19+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
20+
a b c z y x r s t
21+
1 9 18 10 100 1000 2 3 4
22+
2 8 16 20 200 2000 4 6 8
23+
3 7 14 30 300 3000 6 9 12
24+
4 6 12 40 400 4000 8 12 16
25+
5 5 10 50 500 5000 10 15 20
26+
6 4 8 60 600 6000 12 18 24
27+
7 3 6 70 700 7000 14 21 28
28+
8 2 4 80 800 8000 16 24 32
29+
9 1 2 90 900 9000 18 27 36
30+
10 0 0 100 1000 10000 20 30 40
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
*** Bug #22169 ***
3+
DROP TABLE IF EXISTS t1;
4+
CREATE TABLE t1 (a int, str varchar(3), b int, c int, z int, y int, x int, r int, s int, t int, d char(4), key (z), key(x), key(t));
5+
id select_type table type possible_keys key key_len ref rows Extra
6+
1 SIMPLE t1 NULL foo1 foo1 NULL NULL NULL; Using where; Using index
7+
c r
8+
0 20
9+
2 18
10+
4 16
11+
6 14
12+
8 12
13+
10 10
14+
12 8
15+
14 6
16+
16 4
17+
18 2
18+
id select_type table type possible_keys key key_len ref rows Extra
19+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
20+
a str b c z y x r s t d
21+
1 s 9 18 10 100 1000 2 3 4 AB
22+
2 s 8 16 20 200 2000 4 6 8 AB
23+
3 s 7 14 30 300 3000 6 9 12 AB
24+
4 s 6 12 40 400 4000 8 12 16 AB
25+
5 s 5 10 50 500 5000 10 15 20 AB
26+
6 s 4 8 60 600 6000 12 18 24 AB
27+
7 s 3 6 70 700 7000 14 21 28 AB
28+
8 s 2 4 80 800 8000 16 24 32 AB
29+
9 s 1 2 90 900 9000 18 27 36 AB
30+
10 s 0 0 100 1000 10000 20 30 40 AB
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
*** Bug #22169 ***
3+
DROP TABLE IF EXISTS t1;
4+
CREATE TABLE t1 (a int, b int, c int, z int, y int, x int, r int, s int, t int, key (z), key(x), key(t));
5+
id select_type table type possible_keys key key_len ref rows Extra
6+
1 SIMPLE t1 NULL foo1 foo1 NULL NULL NULL; Using where; Using index
7+
c r
8+
0 20
9+
2 18
10+
4 16
11+
6 14
12+
8 12
13+
10 10
14+
12 8
15+
14 6
16+
16 4
17+
18 2
18+
id select_type table type possible_keys key key_len ref rows Extra
19+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
20+
a b c z y x r s t
21+
1 9 18 10 100 1000 2 3 4
22+
2 8 16 20 200 2000 4 6 8
23+
3 7 14 30 300 3000 6 9 12
24+
4 6 12 40 400 4000 8 12 16
25+
5 5 10 50 500 5000 10 15 20
26+
6 4 8 60 600 6000 12 18 24
27+
7 3 6 70 700 7000 14 21 28
28+
8 2 4 80 800 8000 16 24 32
29+
9 1 2 90 900 9000 18 27 36
30+
10 0 0 100 1000 10000 20 30 40
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
*** Bug #22169 ***
3+
DROP TABLE IF EXISTS t1;
4+
CREATE TABLE t1 (a int, b int, c int, z int, y int, x int, r int, s int, t int, key (z), key(x), key(t));
5+
id select_type table type possible_keys key key_len ref rows Extra
6+
1 SIMPLE t1 NULL foo foo NULL NULL NULL; Using where; Using index
7+
c r
8+
0 20
9+
2 18
10+
4 16
11+
6 14
12+
8 12
13+
10 10
14+
12 8
15+
14 6
16+
16 4
17+
18 2
18+
id select_type table type possible_keys key key_len ref rows Extra
19+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
20+
a b c z y x r s t
21+
1 9 18 10 100 1000 2 3 4
22+
2 8 16 20 200 2000 4 6 8
23+
3 7 14 30 300 3000 6 9 12
24+
4 6 12 40 400 4000 8 12 16
25+
5 5 10 50 500 5000 10 15 20
26+
6 4 8 60 600 6000 12 18 24
27+
7 3 6 70 700 7000 14 21 28
28+
8 2 4 80 800 8000 16 24 32
29+
9 1 2 90 900 9000 18 27 36
30+
10 0 0 100 1000 10000 20 30 40
31+
id select_type table type possible_keys key key_len ref rows Extra
32+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; Using where
33+
c r
34+
18 2
35+
16 4
36+
14 6
37+
12 8
38+
10 10
39+
8 12
40+
6 14
41+
4 16
42+
2 18
43+
0 20
44+
id select_type table type possible_keys key key_len ref rows Extra
45+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
46+
a b c z y x r s t
47+
1 9 18 10 100 1000 2 3 4
48+
2 8 16 20 200 2000 4 6 8
49+
3 7 14 30 300 3000 6 9 12
50+
4 6 12 40 400 4000 8 12 16
51+
5 5 10 50 500 5000 10 15 20
52+
6 4 8 60 600 6000 12 18 24
53+
7 3 6 70 700 7000 14 21 28
54+
8 2 4 80 800 8000 16 24 32
55+
9 1 2 90 900 9000 18 27 36
56+
10 0 0 100 1000 10000 20 30 40
57+
id select_type table type possible_keys key key_len ref rows Extra
58+
1 SIMPLE t1 NULL foo foo NULL NULL NULL; Using where; Using index
59+
c r
60+
0 20
61+
2 18
62+
4 16
63+
6 14
64+
8 12
65+
10 10
66+
12 8
67+
14 6
68+
16 4
69+
18 2
70+
id select_type table type possible_keys key key_len ref rows Extra
71+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
72+
a b c z y x r s t
73+
1 9 18 10 100 1000 2 3 4
74+
2 8 16 20 200 2000 4 6 8
75+
3 7 14 30 300 3000 6 9 12
76+
4 6 12 40 400 4000 8 12 16
77+
5 5 10 50 500 5000 10 15 20
78+
6 4 8 60 600 6000 12 18 24
79+
7 3 6 70 700 7000 14 21 28
80+
8 2 4 80 800 8000 16 24 32
81+
9 1 2 90 900 9000 18 27 36
82+
10 0 0 100 1000 10000 20 30 40
83+
ERROR 42000: Duplicate key name 'foo'
84+
id select_type table type possible_keys key key_len ref rows Extra
85+
1 SIMPLE t1 NULL foo foo NULL NULL NULL; Using where; Using index
86+
c r
87+
0 20
88+
2 18
89+
4 16
90+
6 14
91+
8 12
92+
10 10
93+
12 8
94+
14 6
95+
16 4
96+
18 2
97+
id select_type table type possible_keys key key_len ref rows Extra
98+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
99+
a b c z y x r s t
100+
1 9 18 10 100 1000 2 3 4
101+
2 8 16 20 200 2000 4 6 8
102+
3 7 14 30 300 3000 6 9 12
103+
4 6 12 40 400 4000 8 12 16
104+
5 5 10 50 500 5000 10 15 20
105+
6 4 8 60 600 6000 12 18 24
106+
7 3 6 70 700 7000 14 21 28
107+
8 2 4 80 800 8000 16 24 32
108+
9 1 2 90 900 9000 18 27 36
109+
10 0 0 100 1000 10000 20 30 40
110+
id select_type table type possible_keys key key_len ref rows Extra
111+
1 SIMPLE t1 NULL z z NULL NULL NULL; Using where; Using index
112+
z a
113+
10 1
114+
20 2
115+
30 3
116+
40 4
117+
50 5
118+
60 6
119+
70 7
120+
80 8
121+
90 9
122+
100 10
123+
id select_type table type possible_keys key key_len ref rows Extra
124+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
125+
a b c z y x r s t
126+
1 9 18 10 100 1000 2 3 4
127+
2 8 16 20 200 2000 4 6 8
128+
3 7 14 30 300 3000 6 9 12
129+
4 6 12 40 400 4000 8 12 16
130+
5 5 10 50 500 5000 10 15 20
131+
6 4 8 60 600 6000 12 18 24
132+
7 3 6 70 700 7000 14 21 28
133+
8 2 4 80 800 8000 16 24 32
134+
9 1 2 90 900 9000 18 27 36
135+
10 0 0 100 1000 10000 20 30 40
136+
id select_type table type possible_keys key key_len ref rows Extra
137+
1 SIMPLE t1 NULL foo foo NULL NULL NULL; Using where; Using index
138+
c r
139+
0 20
140+
2 18
141+
4 16
142+
6 14
143+
8 12
144+
10 10
145+
12 8
146+
14 6
147+
16 4
148+
18 2
149+
id select_type table type possible_keys key key_len ref rows Extra
150+
1 SIMPLE t1 NULL NULL NULL NULL NULL NULL; NULL
151+
a b c z y x r s t
152+
1 9 18 10 100 1000 2 3 4
153+
2 8 16 20 200 2000 4 6 8
154+
3 7 14 30 300 3000 6 9 12
155+
4 6 12 40 400 4000 8 12 16
156+
5 5 10 50 500 5000 10 15 20
157+
6 4 8 60 600 6000 12 18 24
158+
7 3 6 70 700 7000 14 21 28
159+
8 2 4 80 800 8000 16 24 32
160+
9 1 2 90 900 9000 18 27 36
161+
10 0 0 100 1000 10000 20 30 40
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
*** Bug #22169 ***
3+
DROP TABLE IF EXISTS t1;
4+
CREATE TABLE t1 (a int, b int, c int, z int, y int, x int, r int, s int, t int, key (z), key(x), key(t));
5+
ERROR 23000: Can't write; duplicate key in table 't1'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SET DEFAULT_STORAGE_ENGINE='tokudb';
2+
*** Bug #22169 ***
3+
DROP TABLE IF EXISTS t1;
4+
CREATE TABLE t1 (a int, b int, c int, z int, y int, x int, r int, s int, t int, key (z), key(x), key(t));
5+
ERROR 23000: Duplicate entry '18-2' for key 'foo'

0 commit comments

Comments
 (0)