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
#***********************************************************************
11
# This file test the busy handler
13
# $Id: busy.test,v 1.3 2008/03/15 02:09:22 drh Exp $
16
set testdir [file dirname $argv0]
17
source $testdir/tester.tcl
23
INSERT INTO t1 VALUES(1);
35
db2 eval {BEGIN EXCLUSIVE}
36
catchsql {BEGIN IMMEDIATE}
37
} {1 {database is locked}}
43
catchsql {BEGIN IMMEDIATE}
49
db eval {BEGIN; INSERT INTO t1 VALUES(5)}
50
db2 eval {BEGIN; SELECT * FROM t1}
53
} {1 {database is locked}}