@@ -4,101 +4,36 @@ purge master logs before adddate(current_timestamp(), interval -4 day);
4
4
create table t1(a int,b int,key(a),key(b));
5
5
insert into t1(a,b) values (1,2),(2,1),(2,3),(3,4),(5,4),(5,5),
6
6
(6,7),(7,4),(5,3);
7
- select sum(a),a from t1 where a> (
8
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
9
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
10
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
11
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
12
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
13
- select sum(a) from t1 where a> ( select sum(a) from t1
14
- )group by b limit 1)group by b limit 1
15
- )group by b limit 1)group by b limit 1)group by b limit 1
16
- )group by b limit 1)group by b limit 1)group by b limit 1
17
- )group by b limit 1)group by b limit 1)group by b limit 1)
18
- group by a;
19
- sum(a) a
20
- select sum(a),a from t1 where a> (
21
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
22
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
23
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
24
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
25
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
26
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
27
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
28
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
29
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
30
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
31
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
32
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
33
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
34
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
35
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
36
- select sum(a) from t1
37
- )group by b limit 1)group by b limit 1)group by b limit 1
38
- )group by b limit 1)group by b limit 1)group by b limit 1
39
- )group by b limit 1)group by b limit 1)group by b limit 1
40
- )group by b limit 1)group by b limit 1)group by b limit 1
41
- )group by b limit 1)group by b limit 1)group by b limit 1
42
- )group by b limit 1)group by b limit 1)group by b limit 1
43
- )group by b limit 1)group by b limit 1)group by b limit 1
44
- )group by b limit 1)group by b limit 1)group by b limit 1
45
- )group by b limit 1)group by b limit 1)group by b limit 1
46
- )group by b limit 1)group by b limit 1)group by b limit 1)
47
- group by a;
48
- ERROR HY000: Thread stack overrun detected
49
- explain select sum(a),a from t1 where a> (
50
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
51
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
52
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
53
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
54
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
55
- select sum(a) from t1 where a> ( select sum(a) from t1
56
- )group by b limit 1)group by b limit 1
57
- )group by b limit 1)group by b limit 1)group by b limit 1
58
- )group by b limit 1)group by b limit 1)group by b limit 1
59
- )group by b limit 1)group by b limit 1)group by b limit 1)
60
- group by a;
61
- id select_type table type possible_keys key key_len ref rows Extra
62
- 1 PRIMARY t1 index a a 5 NULL 9 Using where; Using index
63
- 2 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
64
- 3 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
65
- 4 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
66
- 5 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
67
- 6 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
68
- 7 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
69
- 8 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
70
- 9 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
71
- 10 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
72
- 11 SUBQUERY t1 index a b 5 NULL 9 Using where; Using filesort
73
- 12 SUBQUERY t1 range a a 5 NULL 1 Using where; Using temporary; Using filesort
74
- 13 SUBQUERY t1 index NULL a 5 NULL 9 Using index
75
- explain select sum(a),a from t1 where a> (
76
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
77
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
78
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
79
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
80
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
81
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
82
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
83
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
84
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
85
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
86
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
87
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
88
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
89
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
90
- select sum(a) from t1 where a> ( select sum(a) from t1 where a> (
91
- select sum(a) from t1
92
- )group by b limit 1)group by b limit 1)group by b limit 1
93
- )group by b limit 1)group by b limit 1)group by b limit 1
94
- )group by b limit 1)group by b limit 1)group by b limit 1
95
- )group by b limit 1)group by b limit 1)group by b limit 1
96
- )group by b limit 1)group by b limit 1)group by b limit 1
97
- )group by b limit 1)group by b limit 1)group by b limit 1
98
- )group by b limit 1)group by b limit 1)group by b limit 1
99
- )group by b limit 1)group by b limit 1)group by b limit 1
100
- )group by b limit 1)group by b limit 1)group by b limit 1
101
- )group by b limit 1)group by b limit 1)group by b limit 1)
102
- group by a;
103
- ERROR HY000: Thread stack overrun detected
7
+ 5
8
+ 4
9
+ 3
10
+ 2
11
+ 1
12
+ 26
13
+ 25
14
+ 24
15
+ 23
16
+ 22
17
+ 21
18
+ 20
19
+ 19
20
+ 18
21
+ 17
22
+ 16
23
+ 15
24
+ 14
25
+ 13
26
+ 12
27
+ 11
28
+ 10
29
+ 9
30
+ 8
31
+ 7
32
+ 6
33
+ 5
34
+ 4
35
+ 3
36
+ 2
37
+ 1
104
38
drop table t1;
39
+ End of 5.1 tests
0 commit comments