OLD | NEW |
1 # 2005 September 19 | 1 # 2005 September 19 |
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 db2 eval { | 53 db2 eval { |
54 CREATE TABLE t1(a, b, c); | 54 CREATE TABLE t1(a, b, c); |
55 CREATE INDEX i1 ON t1(a, b); | 55 CREATE INDEX i1 ON t1(a, b); |
56 } | 56 } |
57 db2 close | 57 db2 close |
58 } -sqlbody { | 58 } -sqlbody { |
59 CREATE TABLE t1(d, e, f); | 59 CREATE TABLE t1(d, e, f); |
60 ATTACH 'test2.db' AS db1; | 60 ATTACH 'test2.db' AS db1; |
61 } | 61 } |
62 | 62 |
| 63 set enable_shared_cache [sqlite3_enable_shared_cache 1] |
| 64 sqlite3 dbaux test2.db |
| 65 dbaux eval {SELECT * FROM sqlite_master} |
| 66 do_malloc_test attachmalloc-3 -sqlbody { |
| 67 SELECT * FROM sqlite_master; |
| 68 ATTACH 'test2.db' AS two; |
| 69 } -cleanup { |
| 70 db eval { DETACH two } |
| 71 } |
| 72 dbaux close |
| 73 sqlite3_enable_shared_cache $enable_shared_cache |
| 74 |
| 75 |
63 finish_test | 76 finish_test |
OLD | NEW |