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 implements regression tests for SQLite library.
13 # This file implements tests to verify that ticket #1873 has been
17 # $Id: tkt1873.test,v 1.2 2007/10/09 08:29:33 danielk1977 Exp $
19 set testdir [file dirname $argv0]
20 source $testdir/tester.tcl
27 file delete -force test2.db test2.db-journal
31 CREATE TABLE t1(x, y);
32 ATTACH 'test2.db' AS aux;
33 CREATE TABLE aux.t2(x, y);
34 INSERT INTO t1 VALUES(1, 2);
35 INSERT INTO t1 VALUES(3, 4);
36 INSERT INTO t2 VALUES(5, 6);
37 INSERT INTO t2 VALUES(7, 8);
43 db eval {SELECT * FROM t2 LIMIT 1} {
48 } {1 {database aux is locked}}
52 db eval {SELECT * FROM t1 LIMIT 1} {
63 } {1 {no such table: t2}}
67 ATTACH 'test2.db' AS aux;