~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
-- connect (con1,localhost,root,,)
2
-- connect (con2,localhost,root,,)
3
4
-- connection con1
5
SET autocommit=0;
6
SELECT * FROM t1 FOR UPDATE;
7
-- if ($con1_extra_sql_present) {
8
	-- eval $con1_extra_sql
9
-- }
928.1.8 by Eric Day
All tests now passing now, fixed a few more client utility bugs.
10
-- if ($con1_extra_sql2_present) {
11
	-- eval $con1_extra_sql2
12
-- }
1 by brian
clean slate
13
14
-- connection con2
15
SET autocommit=0;
16
SELECT * FROM t2 FOR UPDATE;
17
-- if ($con2_extra_sql_present) {
18
	-- eval $con2_extra_sql
19
-- }
20
21
-- if ($con1_should_be_rolledback) {
22
	-- connection con1
23
	-- send
24
	INSERT INTO t2 VALUES (0);
25
26
	-- connection con2
27
	INSERT INTO t1 VALUES (0);
28
	ROLLBACK;
29
30
	-- connection con1
31
	-- reap
32
-- }
33
# else
34
-- if (!$con1_should_be_rolledback) {
35
	-- connection con2
36
	-- send
37
	INSERT INTO t1 VALUES (0);
38
39
	-- connection con1
40
	INSERT INTO t2 VALUES (0);
41
	ROLLBACK;
42
43
	-- connection con2
44
	-- reap
45
-- }
46
47
-- connection default
48
1106.3.1 by Brian Aker
Heap is now tmp only table
49
DROP TABLE t5_nontrans;
50
CREATE TABLE t5_nontrans (a INT) ENGINE=ARCHIVE;
1 by brian
clean slate
51
52
-- disconnect con1
53
-- disconnect con2