Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add a test to check that opening a second connection to a shared cache does not reset the cache size to its default value. (CVS 5256) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
3546e245aaf5d75b9f52ffb3268da9bc |
User & Date: | danielk1977 2008-06-20 17:51:17.000 |
Context
2008-06-20
| ||
18:13 | Add new Compare and Jump codes to the virtual machine. Use them in the implementation of aggregate queries. (CVS 5257) (check-in: 083113652f user: drh tags: trunk) | |
17:51 | Add a test to check that opening a second connection to a shared cache does not reset the cache size to its default value. (CVS 5256) (check-in: 3546e245aa user: danielk1977 tags: trunk) | |
15:24 | Change the SRT_Subroutine mode into SRT_Coroutine. Use co-routines in the INSERT processing logic. (CVS 5255) (check-in: 6b9d92fc3f user: drh tags: trunk) | |
Changes
Changes to test/shared3.test.
1 2 3 4 5 6 7 8 9 10 11 | # 2005 January 19 # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # 2005 January 19 # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # # $Id: shared3.test,v 1.2 2008/06/20 17:51:17 danielk1977 Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl db close ifcapable !shared_cache { finish_test |
︙ | ︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 47 | sqlite3 db1 test.db db1 eval {SELECT * FROM t1} } {abc {This is a test string}} do_test shared3-1.2 { sqlite3 db2 test.db db2 eval {SELECT y FROM t1 WHERE x='abc'} } {{This is a test string}} db1 close db2 close sqlite3_enable_shared_cache $::enable_shared_cache finish_test | > > > > > > > > > > > > > > > > > > > > > > > | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | sqlite3 db1 test.db db1 eval {SELECT * FROM t1} } {abc {This is a test string}} do_test shared3-1.2 { sqlite3 db2 test.db db2 eval {SELECT y FROM t1 WHERE x='abc'} } {{This is a test string}} db1 close db2 close do_test shared3-2.1 { sqlite3 db1 test.db execsql { PRAGMA main.cache_size = 64; } db1 } {} do_test shared3-2.2 { execsql { PRAGMA main.cache_size } db1 } {64} do_test shared3-2.3 { sqlite3 db2 test.db execsql { PRAGMA main.cache_size } db1 } {64} do_test shared3-2.4 { execsql { PRAGMA main.cache_size } db2 } {64} do_test shared3-2.5 { execsql { PRAGMA main.cache_size } db1 } {64} db1 close db2 close sqlite3_enable_shared_cache $::enable_shared_cache finish_test |