File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -220,18 +220,11 @@ INSERT INTO t2 VALUES(@b);
220
220
END|
221
221
Warnings:
222
222
Warning 3125 MAX_EXECUTION_TIME hint is supported by top-level standalone SELECT statements only
223
- DROP EVENT event1|
224
- TRUNCATE TABLE t2;
225
- CREATE EVENT event1 ON SCHEDULE AT CURRENT_TIMESTAMP
226
- DO BEGIN
227
- SELECT SLEEP(2) into @a;
228
- INSERT INTO t2 VALUES(@a);
229
- END
230
- |
231
223
# Wait until at least one instance of event is executed.
232
224
SELECT /*+ MAX_EXECUTION_TIME(3600000) */ * FROM t2;
233
225
f1
234
226
0
227
+ 0
235
228
DELETE FROM t2;
236
229
SET @@global.event_scheduler= @global_event_scheduler_status;
237
230
SET @@global.max_execution_time= 0;
Original file line number Diff line number Diff line change @@ -250,15 +250,6 @@ DO BEGIN
250
250
INSERT INTO t2 VALUES(@a);
251
251
INSERT INTO t2 VALUES(@b);
252
252
END|
253
- DROP EVENT event1|
254
- TRUNCATE TABLE t2;
255
-
256
- CREATE EVENT event1 ON SCHEDULE AT CURRENT_TIMESTAMP
257
- DO BEGIN
258
- SELECT SLEEP(2) into @a;
259
- INSERT INTO t2 VALUES(@a);
260
- END
261
- |
262
253
263
254
delimiter ;|
264
255
@@ -267,7 +258,7 @@ let $wait_condition= SELECT /*+ MAX_EXECUTION_TIME(3600000) */ COUNT(*) FROM t2;
267
258
--source include/wait_condition.inc
268
259
269
260
#Since MAX_EXECUTION_TIME is not applicable for events & SELECTs of event,
270
- #selects of event1 are not interruped so table contains 0 value .
261
+ #selects of event1 are not interruped so table contains two 0 values .
271
262
SELECT /*+ MAX_EXECUTION_TIME(3600000) */ * FROM t2;
272
263
273
264
DELETE FROM t2;
You can’t perform that action at this time.
0 commit comments