~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Tests of syncronization of stored procedure execution.
 
2
#
 
3
# Bug#48157: crash in Item_field::used_tables
 
4
#
 
5
CREATE TABLE t1 AS SELECT 1 AS a, 1 AS b;
 
6
CREATE TABLE t2 AS SELECT 1 AS a, 1 AS b;
 
7
CREATE PROCEDURE p1()
 
8
BEGIN
 
9
UPDATE t1 JOIN t2 USING( a, b ) SET t1.b = 1, t2.b = 1;
 
10
END|
 
11
LOCK TABLES t1 WRITE, t2 WRITE;
 
12
SET DEBUG_SYNC = 'multi_update_reopen_tables SIGNAL parked WAIT_FOR go';
 
13
CALL p1();
 
14
DROP TABLE t1, t2;
 
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.
 
21
DROP TABLE t1, t2;
 
22
DROP PROCEDURE p1;
 
23
SET DEBUG_SYNC = 'RESET';