| OLD | NEW |
| 1 # 2008 July 14 | 1 # 2008 July 14 |
| 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 12 matching lines...) Expand all Loading... |
| 23 # | 23 # |
| 24 ifcapable !shared_cache||!compound { | 24 ifcapable !shared_cache||!compound { |
| 25 finish_test | 25 finish_test |
| 26 return | 26 return |
| 27 } | 27 } |
| 28 set ::enable_shared_cache [sqlite3_enable_shared_cache 1] | 28 set ::enable_shared_cache [sqlite3_enable_shared_cache 1] |
| 29 | 29 |
| 30 # Prepare multiple databases in shared cache mode. | 30 # Prepare multiple databases in shared cache mode. |
| 31 # | 31 # |
| 32 do_test shared4-1.1 { | 32 do_test shared4-1.1 { |
| 33 file delete -force test1.db test1.db-journal | 33 forcedelete test1.db test1.db-journal |
| 34 file delete -force test2.db test2.db-journal | 34 forcedelete test2.db test2.db-journal |
| 35 file delete -force test3.db test3.db-journal | 35 forcedelete test3.db test3.db-journal |
| 36 file delete -force test4.db test4.db-journal | 36 forcedelete test4.db test4.db-journal |
| 37 sqlite3 db1 test1.db | 37 sqlite3 db1 test1.db |
| 38 sqlite3 db2 test2.db | 38 sqlite3 db2 test2.db |
| 39 sqlite3 db3 test3.db | 39 sqlite3 db3 test3.db |
| 40 sqlite3 db4 test4.db | 40 sqlite3 db4 test4.db |
| 41 db1 eval { | 41 db1 eval { |
| 42 CREATE TABLE t1(a); | 42 CREATE TABLE t1(a); |
| 43 INSERT INTO t1 VALUES(111); | 43 INSERT INTO t1 VALUES(111); |
| 44 } | 44 } |
| 45 db2 eval { | 45 db2 eval { |
| 46 CREATE TABLE t2(b); | 46 CREATE TABLE t2(b); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } {1111111 3333333 4444444 2222222} | 228 } {1111111 3333333 4444444 2222222} |
| 229 | 229 |
| 230 | 230 |
| 231 db1 close | 231 db1 close |
| 232 db2 close | 232 db2 close |
| 233 db3 close | 233 db3 close |
| 234 db4 close | 234 db4 close |
| 235 | 235 |
| 236 sqlite3_enable_shared_cache $::enable_shared_cache | 236 sqlite3_enable_shared_cache $::enable_shared_cache |
| 237 finish_test | 237 finish_test |
| OLD | NEW |