| OLD | NEW |
| 1 # 2009 March 24 | 1 # 2009 March 24 |
| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 file size test.db-journal | 105 file size test.db-journal |
| 106 } {0} | 106 } {0} |
| 107 | 107 |
| 108 do_test jrnlmode2-2.4 { | 108 do_test jrnlmode2-2.4 { |
| 109 sqlite3 db2 test.db -readonly 1 | 109 sqlite3 db2 test.db -readonly 1 |
| 110 catchsql { SELECT * FROM t1 } db2 | 110 catchsql { SELECT * FROM t1 } db2 |
| 111 } {0 {1 2 3 4 5 6}} | 111 } {0 {1 2 3 4 5 6}} |
| 112 | 112 |
| 113 do_test jrnlmode2-2.5 { | 113 do_test jrnlmode2-2.5 { |
| 114 db close | 114 db close |
| 115 file delete test.db-journal | 115 delete_file test.db-journal |
| 116 } {} | 116 } {} |
| 117 do_test jrnlmode2-2.6 { | 117 do_test jrnlmode2-2.6 { |
| 118 sqlite3 db2 test.db -readonly 1 | 118 sqlite3 db2 test.db -readonly 1 |
| 119 catchsql { SELECT * FROM t1 } db2 | 119 catchsql { SELECT * FROM t1 } db2 |
| 120 } {0 {1 2 3 4 5 6}} | 120 } {0 {1 2 3 4 5 6}} |
| 121 | 121 |
| 122 catch { db2 close } | 122 catch { db2 close } |
| 123 finish_test | 123 finish_test |
| OLD | NEW |