~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/t/multi_table.inc

  • Committer: Patrick Crews
  • Date: 2010-07-22 20:41:05 UTC
  • mfrom: (1666.2.4 build)
  • Revision ID: gleebix@gmail.com-20100722204105-v1l78g0mg02y2xw2
Rollup patch - test updates, innodb work, transaction log bug fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# Tests changes to multiple tables within the same transaction 
 
3
#
 
4
 
 
5
--disable_warnings
 
6
DROP TABLE IF EXISTS t1, t2;
 
7
--enable_warnings
 
8
 
 
9
CREATE TABLE t1 (
 
10
  id INT NOT NULL PRIMARY KEY
 
11
);
 
12
 
 
13
CREATE TABLE t2 (
 
14
  id INT NOT NULL PRIMARY KEY
 
15
);
 
16
 
 
17
START TRANSACTION;
 
18
INSERT INTO t1 VALUES (1);
 
19
INSERT INTO t2 VALUES (1);
 
20
COMMIT;
 
21
 
 
22
START TRANSACTION;
 
23
UPDATE t1 SET id=2 WHERE id=1;
 
24
UPDATE t2 SET id=2 WHERE id=1;
 
25
COMMIT;
 
26
 
 
27
START TRANSACTION;
 
28
DELETE FROM t1 WHERE id=2;
 
29
DELETE FROM t2 WHERE id=2;
 
30
COMMIT;
 
31
 
 
32
DROP TABLE t1, t2;