| OLD | NEW |
| 1 # 2014-01-20 | 1 # 2014-01-20 |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 do_test 1.2 { | 57 do_test 1.2 { |
| 58 db eval { SELECT name, rootpage FROM sqlite_master } { | 58 db eval { SELECT name, rootpage FROM sqlite_master } { |
| 59 set r($name) $rootpage | 59 set r($name) $rootpage |
| 60 } | 60 } |
| 61 db close | 61 db close |
| 62 hexio_write test.db [expr {($r(t2)-1)*1024 + 11}] [format %.2X $r(t1)] | 62 hexio_write test.db [expr {($r(t2)-1)*1024 + 11}] [format %.2X $r(t1)] |
| 63 sqlite3 db test.db | 63 sqlite3 db test.db |
| 64 } {} | 64 } {} |
| 65 | 65 |
| 66 do_test 1.3 { | 66 do_test 1.3 { |
| 67 breakpoint | |
| 68 db eval { PRAGMA secure_delete=1 } | 67 db eval { PRAGMA secure_delete=1 } |
| 69 list [catch { | 68 list [catch { |
| 70 db eval { SELECT * FROM t1 WHERE a IN (1, 2) } { | 69 db eval { SELECT * FROM t1 WHERE a IN (1, 2) } { |
| 71 db eval { DELETE FROM t2 } | 70 db eval { DELETE FROM t2 } |
| 72 } | 71 } |
| 73 } msg] $msg | 72 } msg] $msg |
| 74 } {1 {database disk image is malformed}} | 73 } {1 {database disk image is malformed}} |
| 75 | 74 |
| 76 #------------------------------------------------------------------------- | 75 #------------------------------------------------------------------------- |
| 77 reset_db | 76 reset_db |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 db eval { SELECT * FROM t1 WHERE a IN (1, 2) } { | 168 db eval { SELECT * FROM t1 WHERE a IN (1, 2) } { |
| 170 db eval { | 169 db eval { |
| 171 DELETE FROM t2 WHERE c=1; | 170 DELETE FROM t2 WHERE c=1; |
| 172 } | 171 } |
| 173 } | 172 } |
| 174 } msg] $msg | 173 } msg] $msg |
| 175 } {1 {database disk image is malformed}} | 174 } {1 {database disk image is malformed}} |
| 176 | 175 |
| 177 finish_test | 176 finish_test |
| 178 | 177 |
| OLD | NEW |