Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add a test to vacuum3.test to try to trick sqlite into using the wrong database page-size. Turns out there was no problem. (CVS 5167) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
281589a22fa481b1dfcae69fc124458d |
User & Date: | danielk1977 2008-05-28 14:08:17.000 |
Context
2008-05-28
| ||
16:00 | Add another test case to vacuum3.test. (CVS 5168) (check-in: d895e85e2f user: danielk1977 tags: trunk) | |
14:08 | Add a test to vacuum3.test to try to trick sqlite into using the wrong database page-size. Turns out there was no problem. (CVS 5167) (check-in: 281589a22f user: danielk1977 tags: trunk) | |
13:49 | Allow the SQLITE_MAX_EXPR_DEPTH compile-time parameter to be set to 0 in order to disable expression depth checking. Ticket #3143. (CVS 5166) (check-in: 5ceef40e39 user: drh tags: trunk) | |
Changes
Changes to test/vacuum3.test.
︙ | ︙ | |||
8 9 10 11 12 13 14 | # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. The # focus of this file is changing the database page size using a # VACUUM statement. # | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. The # focus of this file is changing the database page size using a # VACUUM statement. # # $Id: vacuum3.test,v 1.3 2008/05/28 14:08:17 danielk1977 Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl # If the VACUUM statement is disabled in the current build, skip all # the tests in this file. # |
︙ | ︙ | |||
192 193 194 195 196 197 198 199 200 201 202 203 204 205 | do_test vacuum3-3.$I.2 { signature } $::sig integrity_check vacuum3-3.$I.3 incr I } do_ioerr_test vacuum3-ioerr-1 -cksum true -sqlprep { PRAGMA page_size = 1024; BEGIN; CREATE TABLE t1(a, b, c); INSERT INTO t1 VALUES(1, randstr(50,50), randstr(50,50)); INSERT INTO t1 SELECT a+2, b||'-'||rowid, c||'-'||rowid FROM t1; | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | do_test vacuum3-3.$I.2 { signature } $::sig integrity_check vacuum3-3.$I.3 incr I } do_test vacuum3-4.1 { db close file delete test.db sqlite3 db test.db execsql { PRAGMA page_size=1024; CREATE TABLE abc(a, b, c); INSERT INTO abc VALUES(1, 2, 3); INSERT INTO abc VALUES(4, 5, 6); } execsql { SELECT * FROM abc } } {1 2 3 4 5 6} do_test vacuum3-4.2 { sqlite3 db2 test.db execsql { SELECT * FROM abc } db2 } {1 2 3 4 5 6} do_test vacuum3-4.3 { execsql { PRAGMA page_size = 2048; VACUUM; } execsql { SELECT * FROM abc } } {1 2 3 4 5 6} do_test vacuum3-4.4 { execsql { SELECT * FROM abc } db2 } {1 2 3 4 5 6} do_test vacuum3-4.5 { db2 close } {1 2 3 4 5 6} do_ioerr_test vacuum3-ioerr-1 -cksum true -sqlprep { PRAGMA page_size = 1024; BEGIN; CREATE TABLE t1(a, b, c); INSERT INTO t1 VALUES(1, randstr(50,50), randstr(50,50)); INSERT INTO t1 SELECT a+2, b||'-'||rowid, c||'-'||rowid FROM t1; |
︙ | ︙ |