OLD | NEW |
1 # 2009 April 01 | 1 # 2009 April 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 do_test shared6-3.10 { | 228 do_test shared6-3.10 { |
229 catchsql { SELECT * FROM t1 } db3 | 229 catchsql { SELECT * FROM t1 } db3 |
230 } {1 {database table is locked}} | 230 } {1 {database table is locked}} |
231 do_test shared6-3.X { | 231 do_test shared6-3.X { |
232 db1 close | 232 db1 close |
233 db2 close | 233 db2 close |
234 db3 close | 234 db3 close |
235 } {} | 235 } {} |
236 | 236 |
237 do_test shared6-4.1 { | 237 do_test shared6-4.1 { |
238 #file delete -force test.db test.db-journal | 238 #forcedelete test.db test.db-journal |
239 sqlite3 db1 test.db | 239 sqlite3 db1 test.db |
240 sqlite3 db2 test.db | 240 sqlite3 db2 test.db |
241 | 241 |
242 set ::STMT [sqlite3_prepare_v2 db1 "SELECT * FROM t1" -1 DUMMY] | 242 set ::STMT [sqlite3_prepare_v2 db1 "SELECT * FROM t1" -1 DUMMY] |
243 execsql { CREATE TABLE t5(a, b) } db2 | 243 execsql { CREATE TABLE t5(a, b) } db2 |
244 } {} | 244 } {} |
245 do_test shared6-4.2 { | 245 do_test shared6-4.2 { |
246 sqlite3_finalize $::STMT | 246 sqlite3_finalize $::STMT |
247 } {SQLITE_OK} | 247 } {SQLITE_OK} |
248 do_test shared6-4.X { | 248 do_test shared6-4.X { |
249 | 249 |
250 db1 close | 250 db1 close |
251 db2 close | 251 db2 close |
252 } {} | 252 } {} |
253 | 253 |
254 sqlite3_enable_shared_cache $::enable_shared_cache | 254 sqlite3_enable_shared_cache $::enable_shared_cache |
255 finish_test | 255 finish_test |
OLD | NEW |