OLD | NEW |
1 # 2008 August 01 | 1 # 2008 August 01 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 CREATE TABLE t2(a, b, c); | 50 CREATE TABLE t2(a, b, c); |
51 } | 51 } |
52 } -sqlbody { | 52 } -sqlbody { |
53 SELECT * FROM t1 | 53 SELECT * FROM t1 |
54 } -cleanup { | 54 } -cleanup { |
55 do_test mallocI-4.$::n.2 { | 55 do_test mallocI-4.$::n.2 { |
56 # If this INSERT is possible then [db] does not hold a shared lock | 56 # If this INSERT is possible then [db] does not hold a shared lock |
57 # on the database file. | 57 # on the database file. |
58 catchsql { INSERT INTO t1 VALUES(1, 2, 3) } db2 | 58 catchsql { INSERT INTO t1 VALUES(1, 2, 3) } db2 |
59 } {0 {}} | 59 } {0 {}} |
| 60 catch {db2 close} |
60 } | 61 } |
61 catch { db2 close } | 62 catch { db2 close } |
62 | 63 |
63 finish_test | 64 finish_test |
OLD | NEW |