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

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

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 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
OLDNEW
1 # 2005 February 15 1 # 2005 February 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } {ok} 128 } {ok}
129 do_test vacuum2-3.17 { 129 do_test vacuum2-3.17 {
130 execsql {PRAGMA integrity_check} db 130 execsql {PRAGMA integrity_check} db
131 } {ok} 131 } {ok}
132 132
133 db2 close 133 db2 close
134 134
135 ifcapable autovacuum { 135 ifcapable autovacuum {
136 do_test vacuum2-4.1 { 136 do_test vacuum2-4.1 {
137 db close 137 db close
138 file delete -force test.db 138 forcedelete test.db
139 sqlite3 db test.db 139 sqlite3 db test.db
140 execsql { 140 execsql {
141 pragma auto_vacuum=1; 141 pragma auto_vacuum=1;
142 create table t(a, b); 142 create table t(a, b);
143 insert into t values(1, 2); 143 insert into t values(1, 2);
144 insert into t values(1, 2); 144 insert into t values(1, 2);
145 pragma auto_vacuum=0; 145 pragma auto_vacuum=0;
146 vacuum; 146 vacuum;
147 pragma auto_vacuum; 147 pragma auto_vacuum;
148 } 148 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 set res2 "" 222 set res2 ""
223 db eval {SELECT a, b FROM t1 WHERE a<=10} { 223 db eval {SELECT a, b FROM t1 WHERE a<=10} {
224 if {$a==6} { set res [catchsql VACUUM] } 224 if {$a==6} { set res [catchsql VACUUM] }
225 lappend res2 $a 225 lappend res2 $a
226 } 226 }
227 lappend res2 $res 227 lappend res2 $res
228 } {1 2 3 4 5 6 7 8 9 10 {1 {cannot VACUUM - SQL statements in progress}}} 228 } {1 2 3 4 5 6 7 8 9 10 {1 {cannot VACUUM - SQL statements in progress}}}
229 229
230 230
231 finish_test 231 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698