| OLD | NEW |
| 1 # 2008 August 29 | 1 # 2008 August 29 |
| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 CREATE TABLE t6(a, b, c); | 66 CREATE TABLE t6(a, b, c); |
| 67 CREATE TABLE t7(a, b, c); | 67 CREATE TABLE t7(a, b, c); |
| 68 CREATE TABLE t8(a, b, c); | 68 CREATE TABLE t8(a, b, c); |
| 69 CREATE TABLE t9(a, b, c); | 69 CREATE TABLE t9(a, b, c); |
| 70 } | 70 } |
| 71 pcache_stats | 71 pcache_stats |
| 72 } {current 10 max 12 min 10 recyclable 0} | 72 } {current 10 max 12 min 10 recyclable 0} |
| 73 | 73 |
| 74 do_test pcache-1.5 { | 74 do_test pcache-1.5 { |
| 75 sqlite3 db2 test.db | 75 sqlite3 db2 test.db |
| 76 execsql "PRAGMA cache_size=10" db2 | 76 execsql "PRAGMA cache_size; PRAGMA cache_size=10" db2 |
| 77 pcache_stats | 77 pcache_stats |
| 78 } {current 11 max 22 min 20 recyclable 1} | 78 } {current 11 max 22 min 20 recyclable 1} |
| 79 | 79 |
| 80 do_test pcache-1.6.1 { | 80 do_test pcache-1.6.1 { |
| 81 execsql { | 81 execsql { |
| 82 BEGIN; | 82 BEGIN; |
| 83 SELECT * FROM sqlite_master; | 83 SELECT * FROM sqlite_master; |
| 84 } db2 | 84 } db2 |
| 85 pcache_stats | 85 pcache_stats |
| 86 } {current 11 max 22 min 20 recyclable 0} | 86 } {current 11 max 22 min 20 recyclable 0} |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 SELECT * FROM t5 ORDER BY a; SELECT * FROM t5; | 173 SELECT * FROM t5 ORDER BY a; SELECT * FROM t5; |
| 174 SELECT * FROM t6 ORDER BY a; SELECT * FROM t6; | 174 SELECT * FROM t6 ORDER BY a; SELECT * FROM t6; |
| 175 SELECT * FROM t7 ORDER BY a; SELECT * FROM t7; | 175 SELECT * FROM t7 ORDER BY a; SELECT * FROM t7; |
| 176 SELECT * FROM t8 ORDER BY a; SELECT * FROM t8; | 176 SELECT * FROM t8 ORDER BY a; SELECT * FROM t8; |
| 177 SELECT * FROM t9 ORDER BY a; SELECT * FROM t9; | 177 SELECT * FROM t9 ORDER BY a; SELECT * FROM t9; |
| 178 } | 178 } |
| 179 pcache_stats | 179 pcache_stats |
| 180 } {current 14 max 15 min 10 recyclable 14} | 180 } {current 14 max 15 min 10 recyclable 14} |
| 181 | 181 |
| 182 finish_test | 182 finish_test |
| OLD | NEW |