3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
12 # Verify that a SAVEPOINT on a new, empty database followed by a
13 # ROLLBACK TO that savepoint starts over again with another new
16 # $Id: savepoint5.test,v 1.1 2009/01/02 21:08:09 drh Exp $
18 set testdir [file dirname $argv0]
19 source $testdir/tester.tcl
21 do_test savepoint5-1.1 {
25 INSERT INTO t1 VALUES(1);
26 SELECT count(*) FROM sqlite_master;
30 do_test savepoint5-1.2 {
33 SELECT count(*) FROM sqlite_master;
36 do_test savepoint5-1.3 {
39 INSERT INTO t1 VALUES(1);
40 SELECT count(*) FROM sqlite_master;