OLD | NEW |
1 # 2006 July 25 | 1 # 2006 July 25 |
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 127 } |
128 } {abc abc2 log newtab} | 128 } {abc abc2 log newtab} |
129 do_test vtab7-2.6.1 { | 129 do_test vtab7-2.6.1 { |
130 set ::rc | 130 set ::rc |
131 } {1 {database table is locked}} | 131 } {1 {database table is locked}} |
132 execsql {DROP TABLE newtab} | 132 execsql {DROP TABLE newtab} |
133 | 133 |
134 # Write to an attached database from xSync(). | 134 # Write to an attached database from xSync(). |
135 ifcapable attach { | 135 ifcapable attach { |
136 do_test vtab7-3.1 { | 136 do_test vtab7-3.1 { |
137 file delete -force test2.db | 137 forcedelete test2.db |
138 file delete -force test2.db-journal | 138 forcedelete test2.db-journal |
139 execsql { | 139 execsql { |
140 ATTACH 'test2.db' AS db2; | 140 ATTACH 'test2.db' AS db2; |
141 CREATE TABLE db2.stuff(description, shape, color); | 141 CREATE TABLE db2.stuff(description, shape, color); |
142 } | 142 } |
143 set ::callbacks(xSync,abc) { | 143 set ::callbacks(xSync,abc) { |
144 execsql { INSERT INTO db2.stuff VALUES('abc', 'square', 'green'); } | 144 execsql { INSERT INTO db2.stuff VALUES('abc', 'square', 'green'); } |
145 } | 145 } |
146 execsql { | 146 execsql { |
147 INSERT INTO abc2 VALUES(1, 2, 3); | 147 INSERT INTO abc2 VALUES(1, 2, 3); |
148 SELECT * from stuff; | 148 SELECT * from stuff; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 INSERT INTO abc2 VALUES(1, 2, 3); | 198 INSERT INTO abc2 VALUES(1, 2, 3); |
199 SELECT name FROM sqlite_master ORDER BY name; | 199 SELECT name FROM sqlite_master ORDER BY name; |
200 } | 200 } |
201 set ::error | 201 set ::error |
202 } {1 {database table is locked}} | 202 } {1 {database table is locked}} |
203 | 203 |
204 trace remove variable ::echo_module write echo_module_trace | 204 trace remove variable ::echo_module write echo_module_trace |
205 unset -nocomplain ::callbacks | 205 unset -nocomplain ::callbacks |
206 | 206 |
207 finish_test | 207 finish_test |
OLD | NEW |