1
Tests of syncronization of stored procedure execution.
3
# Bug#48157: crash in Item_field::used_tables
5
CREATE TABLE t1 AS SELECT 1 AS a, 1 AS b;
6
CREATE TABLE t2 AS SELECT 1 AS a, 1 AS b;
9
UPDATE t1 JOIN t2 USING( a, b ) SET t1.b = 1, t2.b = 1;
11
LOCK TABLES t1 WRITE, t2 WRITE;
12
SET DEBUG_SYNC = 'multi_update_reopen_tables SIGNAL parked WAIT_FOR go';
15
SET DEBUG_SYNC = 'now WAIT_FOR parked';
16
CREATE TABLE t1 AS SELECT 1 AS a, 1 AS b;
17
CREATE TABLE t2 AS SELECT 1 AS a, 1 AS b;
18
SET DEBUG_SYNC = 'now SIGNAL go';
19
# Without the DEBUG_SYNC supplied in the same patch as this test in the
20
# code, this test statement will hang.
23
SET DEBUG_SYNC = 'RESET';