~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/r/delayed_insert_limit_func.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
** Setup **
 
2
 
 
3
Creating connection con0
 
4
Creating connection con1
 
5
SET @global_delayed_insert_limit = @@GLOBAL.delayed_insert_limit;
 
6
CREATE TABLE t1 (a varchar(100));
 
7
'#--------------------FN_DYNVARS_25_01-------------------------#'
 
8
SET GLOBAL delayed_insert_limit = 9;
 
9
** Connection con0 **
 
10
SET GLOBAL delayed_insert_limit = 9;
 
11
** Connection con1 **
 
12
SET GLOBAL delayed_insert_limit = 9;
 
13
** Connection default **
 
14
SET GLOBAL delayed_insert_limit = 9;
 
15
INSERT INTO t1 VALUES('1');
 
16
INSERT INTO t1 VALUES('2');
 
17
INSERT INTO t1 VALUES('3');
 
18
INSERT INTO t1 VALUES('4');
 
19
INSERT INTO t1 VALUES('5');
 
20
INSERT INTO t1 VALUES('6');
 
21
LOCK TABLE t1 WRITE;
 
22
** Connection con1 **
 
23
INSERT DELAYED INTO t1 VALUES('7');
 
24
INSERT DELAYED INTO t1 VALUES('8');
 
25
INSERT DELAYED INTO t1 VALUES('9');
 
26
INSERT DELAYED INTO t1 VALUES('10');
 
27
INSERT DELAYED INTO t1 VALUES('11');
 
28
INSERT DELAYED INTO t1 VALUES('12');
 
29
INSERT DELAYED INTO t1 VALUES('13');
 
30
INSERT DELAYED INTO t1 VALUES('14');
 
31
INSERT DELAYED INTO t1 VALUES('15');
 
32
INSERT DELAYED INTO t1 VALUES('16');
 
33
INSERT DELAYED INTO t1 VALUES('17');
 
34
INSERT DELAYED INTO t1 VALUES('18');
 
35
INSERT DELAYED INTO t1 VALUES('19');
 
36
INSERT DELAYED INTO t1 VALUES('20');
 
37
INSERT DELAYED INTO t1 VALUES('21');
 
38
INSERT DELAYED INTO t1 VALUES('22');|
 
39
** Connection con0 **
 
40
SELECT * FROM t1;|
 
41
** Connection default **
 
42
Waiting for 1 sec
 
43
UNLOCK TABLES;
 
44
** Connection con0 **
 
45
a
 
46
1
 
47
2
 
48
3
 
49
4
 
50
5
 
51
6
 
52
7
 
53
8
 
54
9
 
55
10
 
56
11
 
57
12
 
58
13
 
59
14
 
60
15
 
61
16
 
62
'Bug#35386: insert delayed inserts 1 + limit rows instead of just limit rows'
 
63
** Connection default **
 
64
Waiting for 1 sec
 
65
Checking if the delayed insert continued afterwards
 
66
SELECT * FROM t1;
 
67
a
 
68
1
 
69
2
 
70
3
 
71
4
 
72
5
 
73
6
 
74
7
 
75
8
 
76
9
 
77
10
 
78
11
 
79
12
 
80
13
 
81
14
 
82
15
 
83
16
 
84
17
 
85
18
 
86
19
 
87
20
 
88
21
 
89
22
 
90
DELETE FROM t1;
 
91
'#--------------------FN_DYNVARS_25_02-------------------------#'
 
92
SET GLOBAL delayed_insert_limit = 20;
 
93
** Connection con0 **
 
94
SET GLOBAL delayed_insert_limit = 20;
 
95
** Connection con1 **
 
96
SET GLOBAL delayed_insert_limit = 20;
 
97
** Connection default **
 
98
SET GLOBAL delayed_insert_limit = 20;
 
99
INSERT INTO t1 VALUES('1');
 
100
INSERT INTO t1 VALUES('2');
 
101
INSERT INTO t1 VALUES('3');
 
102
INSERT INTO t1 VALUES('4');
 
103
INSERT INTO t1 VALUES('5');
 
104
INSERT INTO t1 VALUES('6');
 
105
LOCK TABLE t1 WRITE;
 
106
** Connection con1 **
 
107
Asynchronous execute
 
108
INSERT DELAYED INTO t1 VALUES('7');
 
109
INSERT DELAYED INTO t1 VALUES('8');
 
110
INSERT DELAYED INTO t1 VALUES('9');
 
111
INSERT DELAYED INTO t1 VALUES('10');
 
112
INSERT DELAYED INTO t1 VALUES('11');
 
113
INSERT DELAYED INTO t1 VALUES('12');
 
114
INSERT DELAYED INTO t1 VALUES('13');
 
115
INSERT DELAYED INTO t1 VALUES('14');
 
116
INSERT DELAYED INTO t1 VALUES('15');
 
117
INSERT DELAYED INTO t1 VALUES('16');
 
118
INSERT DELAYED INTO t1 VALUES('17');
 
119
INSERT DELAYED INTO t1 VALUES('18');
 
120
INSERT DELAYED INTO t1 VALUES('19');
 
121
INSERT DELAYED INTO t1 VALUES('20');
 
122
INSERT DELAYED INTO t1 VALUES('21');
 
123
INSERT DELAYED INTO t1 VALUES('22');|
 
124
** Connection con0 **
 
125
Asynchronous execute
 
126
SELECT * FROM t1;|
 
127
** Connection default **
 
128
Waiting for 1 sec
 
129
UNLOCK TABLES;
 
130
** Connection con0 **
 
131
Asynchronous execute result
 
132
a
 
133
1
 
134
2
 
135
3
 
136
4
 
137
5
 
138
6
 
139
7
 
140
8
 
141
9
 
142
10
 
143
11
 
144
12
 
145
13
 
146
14
 
147
15
 
148
16
 
149
17
 
150
18
 
151
19
 
152
20
 
153
21
 
154
22
 
155
** Connection default**
 
156
Waiting for 1 sec
 
157
Checking if the delayed insert gives the same result afterwards
 
158
SELECT * FROM t1;
 
159
a
 
160
1
 
161
2
 
162
3
 
163
4
 
164
5
 
165
6
 
166
7
 
167
8
 
168
9
 
169
10
 
170
11
 
171
12
 
172
13
 
173
14
 
174
15
 
175
16
 
176
17
 
177
18
 
178
19
 
179
20
 
180
21
 
181
22
 
182
DELETE FROM t1;
 
183
Switching to default
 
184
Disconnecting from con1, con0
 
185
DROP TABLE t1;
 
186
SET @@GLOBAL.delayed_insert_limit = @global_delayed_insert_limit;