Skip to content

Commit 3f9c41f

Browse files
committed
Bug #21306319: HARMONIZE MAX_EXECUTION_TIME HINT WITH MAX_STATEMENT_TIME
Bug #21306392: REMOVE OLD-STYLE MAX_STATEMENT_TIME HINT (REPLACE WITH MAX_EXECUTION_TIME) After-push test update #2.
1 parent f6806fa commit 3f9c41f

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

mysql-test/r/max_statement_time.result

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,18 +220,11 @@ INSERT INTO t2 VALUES(@b);
220220
END|
221221
Warnings:
222222
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-
|
231223
# Wait until at least one instance of event is executed.
232224
SELECT /*+ MAX_EXECUTION_TIME(3600000) */ * FROM t2;
233225
f1
234226
0
227+
0
235228
DELETE FROM t2;
236229
SET @@global.event_scheduler= @global_event_scheduler_status;
237230
SET @@global.max_execution_time= 0;

mysql-test/t/max_statement_time.test

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,6 @@ DO BEGIN
250250
INSERT INTO t2 VALUES(@a);
251251
INSERT INTO t2 VALUES(@b);
252252
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-
|
262253

263254
delimiter ;|
264255

@@ -267,7 +258,7 @@ let $wait_condition= SELECT /*+ MAX_EXECUTION_TIME(3600000) */ COUNT(*) FROM t2;
267258
--source include/wait_condition.inc
268259

269260
#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.
271262
SELECT /*+ MAX_EXECUTION_TIME(3600000) */ * FROM t2;
272263

273264
DELETE FROM t2;

0 commit comments

Comments
 (0)