Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: third_party/sqlite/src/test/progress.test

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/test/printf2.test ('k') | third_party/sqlite/src/test/queryonly.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/printf2.test ('k') | third_party/sqlite/src/test/queryonly.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698