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

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

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/pageropt.test ('k') | third_party/sqlite/src/test/pcache.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 # 2004 September 2 1 # 2004 September 2
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 do_test pagesize-2.$PGSZ.15 { 181 do_test pagesize-2.$PGSZ.15 {
182 execsql {DELETE FROM t1 WHERE rowid%5!=0} 182 execsql {DELETE FROM t1 WHERE rowid%5!=0}
183 ifcapable {vacuum} {execsql VACUUM} 183 ifcapable {vacuum} {execsql VACUUM}
184 execsql {SELECT count(*) FROM t1} 184 execsql {SELECT count(*) FROM t1}
185 } 38 185 } 38
186 do_test pagesize-2.$PGSZ.16 { 186 do_test pagesize-2.$PGSZ.16 {
187 execsql {DROP TABLE t1} 187 execsql {DROP TABLE t1}
188 ifcapable {vacuum} {execsql VACUUM} 188 ifcapable {vacuum} {execsql VACUUM}
189 } {} 189 } {}
190 integrity_check pagesize-2.$PGSZ.17 190 integrity_check pagesize-2.$PGSZ.17
191
192 db close
193 file delete -force test.db
194 sqlite3 db test.db
195 do_test pagesize-2.$PGSZ.30 {
196 execsql "
197 CREATE TABLE t1(x);
198 PRAGMA temp.page_size=$PGSZ;
199 CREATE TEMP TABLE t2(y);
200 PRAGMA main.page_size;
201 PRAGMA temp.page_size;
202 "
203 } [list 1024 $PGSZ]
204
205 db close
206 file delete -force test.db
207 sqlite3 db test.db
208 do_test pagesize-2.$PGSZ.40 {
209 execsql "
210 PRAGMA page_size=$PGSZ;
211 CREATE TABLE t1(x);
212 CREATE TEMP TABLE t2(y);
213 PRAGMA main.page_size;
214 PRAGMA temp.page_size;
215 "
216 } [list $PGSZ $PGSZ]
191 } 217 }
192 218
193 finish_test 219 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/pageropt.test ('k') | third_party/sqlite/src/test/pcache.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698