~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/transaction.result

  • Committer: Brian Aker
  • Date: 2009-01-07 09:27:07 UTC
  • Revision ID: brian@tangent.org-20090107092707-bn67qpdllfcyh3j9
Removing dead field translator code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
DROP TABLE IF EXISTS t1_trx, t1_non_trx;
2
 
SET AUTOCOMMIT= 0;
3
 
CREATE TABLE t1_trx (
4
 
k VARCHAR(10) NOT NULL
5
 
, v VARCHAR(10) NOT NULL
6
 
, PRIMARY KEY (k)
7
 
) ENGINE=InnoDB;
8
 
CREATE TEMPORARY TABLE t1_non_trx (
9
 
k VARCHAR(10) NOT NULL
10
 
, v VARCHAR(10) NOT NULL
11
 
, PRIMARY KEY (k)
12
 
) ENGINE=MyISAM;
13
 
START TRANSACTION;
14
 
INSERT INTO t1_trx VALUES ('key1','value1');
15
 
INSERT INTO t1_trx VALUES ('key2','value2');
16
 
INSERT INTO t1_non_trx VALUES ('key1','value1');
17
 
INSERT INTO t1_non_trx VALUES ('key2','value2');
18
 
ROLLBACK;
19
 
Warnings:
20
 
Warning 1196    Some non-transactional changed tables couldn't be rolled back
21
 
Expected warning about non-trx data changes not being rolled back
22
 
SELECT * FROM t1_trx;
23
 
k       v
24
 
SELECT * FROM t1_non_trx;
25
 
k       v
26
 
key1    value1
27
 
key2    value2
28
 
START TRANSACTION;
29
 
Warnings:
30
 
Warning 1746    There is already a transaction in progress
31
 
INSERT INTO t1_trx VALUES ('key1','value1');
32
 
INSERT INTO t1_trx VALUES ('key2','value2');
33
 
SELECT t1_trx.k, t1_trx.v
34
 
FROM t1_trx
35
 
INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
36
 
k       v
37
 
key1    value1
38
 
key2    value2
39
 
ROLLBACK;
40
 
SELECT t1_trx.k, t1_trx.v
41
 
FROM t1_trx
42
 
INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
43
 
k       v
44
 
COMMIT;
45
 
DROP TABLE t1_trx;
46
 
DROP TABLE t1_non_trx;