OLD | NEW |
1 # 2001 September 15 | 1 # 2001 September 15 |
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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 # not cause other queries to abort. Ticket #2415. | 157 # not cause other queries to abort. Ticket #2415. |
158 do_test progress-1.7 { | 158 do_test progress-1.7 { |
159 execsql { | 159 execsql { |
160 CREATE TABLE abc(a, b, c); | 160 CREATE TABLE abc(a, b, c); |
161 INSERT INTO abc VALUES(1, 2, 3); | 161 INSERT INTO abc VALUES(1, 2, 3); |
162 INSERT INTO abc VALUES(4, 5, 6); | 162 INSERT INTO abc VALUES(4, 5, 6); |
163 INSERT INTO abc VALUES(7, 8, 9); | 163 INSERT INTO abc VALUES(7, 8, 9); |
164 } | 164 } |
165 | 165 |
166 set ::res [list] | 166 set ::res [list] |
| 167 explain {SELECT a, b, c FROM abc} |
167 db eval {SELECT a, b, c FROM abc} { | 168 db eval {SELECT a, b, c FROM abc} { |
168 lappend ::res $a $b $c | 169 lappend ::res $a $b $c |
169 db progress 10 "expr 1" | 170 db progress 5 "expr 1" |
170 catch {db eval {SELECT a, b, c FROM abc} { }} msg | 171 catch {db eval {SELECT a, b, c FROM abc} { }} msg |
| 172 db progress 5 "expr 0" |
171 lappend ::res $msg | 173 lappend ::res $msg |
172 } | 174 } |
173 | 175 |
174 set ::res | 176 set ::res |
175 } {1 2 3 interrupted 4 5 6 interrupted 7 8 9 interrupted} | 177 } {1 2 3 interrupted 4 5 6 interrupted 7 8 9 interrupted} |
176 | 178 |
177 finish_test | 179 finish_test |
OLD | NEW |