~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/savepoints.result

  • Committer: Monty Taylor
  • Date: 2008-11-16 05:36:13 UTC
  • mto: (584.1.9 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116053613-bld4rqxhlkb49c02
Split out cache_row and type_holder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Start Test of Bug 534806
2
 
SET AUTOCOMMIT = 0;
3
 
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY);
4
 
COMMIT;
5
 
UPDATE t1 SET id = 2 WHERE id != 2 LIMIT 0;
6
 
SAVEPOINT A;
7
 
End Test of Bug 534806
8
 
COMMIT;
9
 
DROP TABLE t1;
10
 
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY);
11
 
START TRANSACTION;
12
 
INSERT INTO t1 VALUES (1);
13
 
SAVEPOINT A;
14
 
INSERT INTO t1 VALUES (2);
15
 
SAVEPOINT B;
16
 
INSERT INTO t1 VALUES (3);
17
 
COMMIT;
18
 
SELECT * FROM t1;
19
 
id
20
 
1
21
 
2
22
 
3
23
 
START TRANSACTION;
24
 
Warnings:
25
 
Warning 1746    There is already a transaction in progress
26
 
INSERT INTO t1 VALUES (4);
27
 
SAVEPOINT A;
28
 
INSERT INTO t1 VALUES (5);
29
 
SAVEPOINT B;
30
 
INSERT INTO t1 VALUES (6);
31
 
ROLLBACK;
32
 
SELECT * FROM t1;
33
 
id
34
 
1
35
 
2
36
 
3
37
 
START TRANSACTION;
38
 
Warnings:
39
 
Warning 1746    There is already a transaction in progress
40
 
INSERT INTO t1 VALUES (4);
41
 
SAVEPOINT A;
42
 
INSERT INTO t1 VALUES (5);
43
 
SAVEPOINT B;
44
 
INSERT INTO t1 VALUES (6);
45
 
ROLLBACK TO SAVEPOINT A;
46
 
COMMIT;
47
 
SELECT * FROM t1;
48
 
id
49
 
1
50
 
2
51
 
3
52
 
4
53
 
COMMIT;
54
 
DROP TABLE t1;
55
 
Start Test of Bug 542299
56
 
CREATE TABLE t1 (a int,id integer auto_increment,b int,/*Indices*/key (a ),primary key (id)) ENGINE=innodb;
57
 
INSERT INTO t1 VALUES  (100, NULL, 100) ,  (100, NULL, 100) ,  (100, NULL, 100) ,  (100, NULL, 100) ,  (100, NULL, 100) ,  (100, NULL, 100) ,  (100, NULL, 100) ,  (100, NULL, 100);
58
 
SET AUTOCOMMIT=OFF;
59
 
DELETE FROM t1 WHERE 1 = 1 LIMIT 1;
60
 
COMMIT;
61
 
/* OR ROLLBACK... */
62
 
SAVEPOINT A;
63
 
INSERT INTO t1 ( a, b ) VALUES ( 1 , 9 );
64
 
ROLLBACK TO SAVEPOINT A;
65
 
End Test of Bug 542299
66
 
COMMIT;
67
 
DROP TABLE t1;