OLD | NEW |
1 # 2009 January 3 | 1 # 2009 January 3 |
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 } { | 239 } { |
240 set testname smallcache | 240 set testname smallcache |
241 sqlite3 db test.db | 241 sqlite3 db test.db |
242 sql { PRAGMA cache_size = 10 } | 242 sql { PRAGMA cache_size = 10 } |
243 }] { | 243 }] { |
244 | 244 |
245 unset -nocomplain ::lSavepoint | 245 unset -nocomplain ::lSavepoint |
246 unset -nocomplain ::aEntry | 246 unset -nocomplain ::aEntry |
247 | 247 |
248 catch { db close } | 248 catch { db close } |
249 file delete -force test.db test.db-wal test.db-journal | 249 forcedelete test.db test.db-wal test.db-journal |
250 eval $zSetup | 250 eval $zSetup |
251 sql $DATABASE_SCHEMA | 251 sql $DATABASE_SCHEMA |
252 | 252 |
253 wal_set_journal_mode | 253 wal_set_journal_mode |
254 | 254 |
255 do_test savepoint6-$testname.setup { | 255 do_test savepoint6-$testname.setup { |
256 savepoint one | 256 savepoint one |
257 insert_rows [random_integers 100 1000] | 257 insert_rows [random_integers 100 1000] |
258 release one | 258 release one |
259 checkdb | 259 checkdb |
(...skipping 12 matching lines...) Expand all Loading... |
272 } {ok} | 272 } {ok} |
273 } | 273 } |
274 | 274 |
275 wal_check_journal_mode savepoint6-$testname.walok | 275 wal_check_journal_mode savepoint6-$testname.walok |
276 } | 276 } |
277 | 277 |
278 unset -nocomplain ::lSavepoint | 278 unset -nocomplain ::lSavepoint |
279 unset -nocomplain ::aEntry | 279 unset -nocomplain ::aEntry |
280 | 280 |
281 finish_test | 281 finish_test |
OLD | NEW |