~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbxt/tests/r/basic_savepoint.result

  • Committer: Monty Taylor
  • Date: 2010-08-17 15:18:37 UTC
  • mfrom: (1711.1.20 build)
  • Revision ID: mordred@inaugust.com-20100817151837-xg0sc9n6tgjaf4mn
Rollup merge.

Show diffs side-by-side

added added

removed removed

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