~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
create table t1 (a int primary key);
begin;
insert into t1 values (1);
savepoint A;
insert into t1 values (2);
select count(*) from t1;
count(*)
2
rollback to savepoint A;
select count(*) from t1;
count(*)
1
commit;
select count(*) from t1;
count(*)
1
begin;
insert into t1 values (2);
insert into t1 values (3);
savepoint A;
insert into t1 values (4);
insert into t1 values (5);
savepoint B;
insert into t1 values (6);
savepoint C;
insert into t1 values (7);
rollback to savepoint A;
select count(*) from t1;
count(*)
3
commit;
drop table t1;