OLD | NEW |
1 # 2009 October 13 | 1 # 2009 October 13 |
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 22 matching lines...) Expand all Loading... |
33 sqlite3 db test.db -readonly 1 | 33 sqlite3 db test.db -readonly 1 |
34 set rc [catch { | 34 set rc [catch { |
35 db eval {SELECT rowid, x FROM t1 ORDER BY x} { | 35 db eval {SELECT rowid, x FROM t1 ORDER BY x} { |
36 db eval {UPDATE t1 SET x=x+1 WHERE rowid=:rowid} | 36 db eval {UPDATE t1 SET x=x+1 WHERE rowid=:rowid} |
37 } | 37 } |
38 } msg] | 38 } msg] |
39 lappend rc $msg | 39 lappend rc $msg |
40 } {1 {attempt to write a readonly database}} | 40 } {1 {attempt to write a readonly database}} |
41 | 41 |
42 finish_test | 42 finish_test |
OLD | NEW |