blob: e59647fe5013af5bb594ef2120b0b666dae92cf1 [file] [log] [blame]
drh81a20f22001-10-12 17:30:04 +00001# 2001 October 12
2#
3# The author disclaims copyright to this source code. In place of
4# a legal notice, here is a blessing:
5#
6# May you do good and not evil.
7# May you find forgiveness for yourself and forgive others.
8# May you share freely, never taking more than you give.
9#
10#***********************************************************************
11# This file implements regression tests for SQLite library. The
12# focus of this file is testing for correct handling of I/O errors
13# such as writes failing because the disk is full.
14#
15# The tests in this file use special facilities that are only
16# available in the SQLite test fixture.
17#
danielk1977ef165ce2009-04-06 17:50:03 +000018# $Id: ioerr.test,v 1.43 2009/04/06 17:50:03 danielk1977 Exp $
drh81a20f22001-10-12 17:30:04 +000019
20set testdir [file dirname $argv0]
21source $testdir/tester.tcl
22
danielk19778b60e0f2005-01-12 09:10:39 +000023# If SQLITE_DEFAULT_AUTOVACUUM is set to true, then a simulated IO error
24# on the 8th IO operation in the SQL script below doesn't report an error.
25#
26# This is because the 8th IO call attempts to read page 2 of the database
27# file when the file on disk is only 1 page. The pager layer detects that
28# this has happened and suppresses the error returned by the OS layer.
29#
danielk19774abd5442008-05-05 15:26:50 +000030do_ioerr_test ioerr-1 -erc 1 -ckrefcount 1 -sqlprep {
danielk19778b60e0f2005-01-12 09:10:39 +000031 SELECT * FROM sqlite_master;
32} -sqlbody {
33 CREATE TABLE t1(a,b,c);
34 SELECT * FROM sqlite_master;
35 BEGIN TRANSACTION;
36 INSERT INTO t1 VALUES(1,2,3);
37 INSERT INTO t1 VALUES(4,5,6);
38 ROLLBACK;
39 SELECT * FROM t1;
40 BEGIN TRANSACTION;
41 INSERT INTO t1 VALUES(1,2,3);
42 INSERT INTO t1 VALUES(4,5,6);
43 COMMIT;
44 SELECT * FROM t1;
45 DELETE FROM t1 WHERE a<100;
danielk1977f2fa8312006-01-24 13:09:33 +000046} -exclude [expr [string match [execsql {pragma auto_vacuum}] 1] ? 4 : 0]
danielk19778b60e0f2005-01-12 09:10:39 +000047
danielk197732554c12005-01-22 03:39:39 +000048# Test for IO errors during a VACUUM.
49#
50# The first IO call is excluded from the test. This call attempts to read
51# the file-header of the temporary database used by VACUUM. Since the
52# database doesn't exist at that point, the IO error is not detected.
53#
54# Additionally, if auto-vacuum is enabled, the 12th IO error is not
55# detected. Same reason as the 8th in the test case above.
danielk1977f7c9bfe2005-01-29 08:36:45 +000056#
danielk19770fa388f2005-01-29 09:14:05 +000057ifcapable vacuum {
danielk19774abd5442008-05-05 15:26:50 +000058 do_ioerr_test ioerr-2 -cksum true -ckrefcount true -sqlprep {
danielk19770fa388f2005-01-29 09:14:05 +000059 BEGIN;
60 CREATE TABLE t1(a, b, c);
61 INSERT INTO t1 VALUES(1, randstr(50,50), randstr(50,50));
62 INSERT INTO t1 SELECT a+2, b||'-'||rowid, c||'-'||rowid FROM t1;
63 INSERT INTO t1 SELECT a+4, b||'-'||rowid, c||'-'||rowid FROM t1;
64 INSERT INTO t1 SELECT a+8, b||'-'||rowid, c||'-'||rowid FROM t1;
65 INSERT INTO t1 SELECT a+16, b||'-'||rowid, c||'-'||rowid FROM t1;
66 INSERT INTO t1 SELECT a+32, b||'-'||rowid, c||'-'||rowid FROM t1;
67 INSERT INTO t1 SELECT a+64, b||'-'||rowid, c||'-'||rowid FROM t1;
68 INSERT INTO t1 SELECT a+128, b||'-'||rowid, c||'-'||rowid FROM t1;
69 INSERT INTO t1 VALUES(1, randstr(600,600), randstr(600,600));
70 CREATE TABLE t2 AS SELECT * FROM t1;
71 CREATE TABLE t3 AS SELECT * FROM t1;
72 COMMIT;
73 DROP TABLE t2;
74 } -sqlbody {
75 VACUUM;
76 } -exclude [list \
danielk1977f2fa8312006-01-24 13:09:33 +000077 1 [expr [string match [execsql {pragma auto_vacuum}] 1]?9:-1]]
danielk19770fa388f2005-01-29 09:14:05 +000078}
drh81a20f22001-10-12 17:30:04 +000079
danielk19774abd5442008-05-05 15:26:50 +000080do_ioerr_test ioerr-3 -ckrefcount true -tclprep {
danielk19778b60e0f2005-01-12 09:10:39 +000081 execsql {
82 PRAGMA cache_size = 10;
83 BEGIN;
84 CREATE TABLE abc(a);
85 INSERT INTO abc VALUES(randstr(1500,1500)); -- Page 4 is overflow
86 }
87 for {set i 0} {$i<150} {incr i} {
88 execsql {
89 INSERT INTO abc VALUES(randstr(100,100));
danielk197701427a62005-01-11 13:02:33 +000090 }
danielk19778b60e0f2005-01-12 09:10:39 +000091 }
92 execsql COMMIT
93} -sqlbody {
94 CREATE TABLE abc2(a);
95 BEGIN;
96 DELETE FROM abc WHERE length(a)>100;
97 UPDATE abc SET a = randstr(90,90);
98 COMMIT;
99 CREATE TABLE abc3(a);
danielk1977aac0a382005-01-16 11:07:06 +0000100}
danielk19778b60e0f2005-01-12 09:10:39 +0000101
102# Test IO errors that can occur retrieving a record header that flows over
103# onto an overflow page.
danielk19774abd5442008-05-05 15:26:50 +0000104do_ioerr_test ioerr-4 -ckrefcount true -tclprep {
danielk19778b60e0f2005-01-12 09:10:39 +0000105 set sql "CREATE TABLE abc(a1"
106 for {set i 2} {$i<1300} {incr i} {
107 append sql ", a$i"
108 }
109 append sql ");"
110 execsql $sql
111 execsql {INSERT INTO abc (a1) VALUES(NULL)}
112} -sqlbody {
113 SELECT * FROM abc;
114}
115
danielk1977861f7452008-06-05 11:39:11 +0000116
danielk19778b60e0f2005-01-12 09:10:39 +0000117# Test IO errors that may occur during a multi-file commit.
danielk1977aca790a2005-01-13 11:07:52 +0000118#
danielk1977aac0a382005-01-16 11:07:06 +0000119# Tests 8 and 17 are excluded when auto-vacuum is enabled for the same
120# reason as in test cases ioerr-1.XXX
danielk19775a8f9372007-10-09 08:29:32 +0000121ifcapable attach {
122 set ex ""
123 if {[string match [execsql {pragma auto_vacuum}] 1]} {
124 set ex [list 4 17]
125 }
danielk1977861f7452008-06-05 11:39:11 +0000126 do_ioerr_test ioerr-5 -restoreprng 0 -ckrefcount true -sqlprep {
danielk19775a8f9372007-10-09 08:29:32 +0000127 ATTACH 'test2.db' AS test2;
128 } -sqlbody {
129 BEGIN;
130 CREATE TABLE t1(a,b,c);
131 CREATE TABLE test2.t2(a,b,c);
132 COMMIT;
133 } -exclude $ex
danielk1977aac0a382005-01-16 11:07:06 +0000134}
danielk1977aca790a2005-01-13 11:07:52 +0000135
136# Test IO errors when replaying two hot journals from a 2-file
137# transaction. This test only runs on UNIX.
danb4eb82f2010-10-04 16:06:11 +0000138#
139# It cannot be run under the "exclusive" permutation. In that case, the
140# locks held by the connection in the local (this) process prevent a
141# second connection from attempting the multi-file transaction.
142#
danielk19775a8f9372007-10-09 08:29:32 +0000143ifcapable crashtest&&attach {
danb4eb82f2010-10-04 16:06:11 +0000144 if {![catch {sqlite3 -has-codec} r] && !$r && [permutation]!="exclusive"} {
danielk19774abd5442008-05-05 15:26:50 +0000145 do_ioerr_test ioerr-6 -ckrefcount true -tclprep {
drh66560ad2006-01-06 14:32:19 +0000146 execsql {
147 ATTACH 'test2.db' as aux;
148 CREATE TABLE tx(a, b);
149 CREATE TABLE aux.ty(a, b);
150 }
danielk197759a33f92007-03-17 10:26:59 +0000151 set rc [crashsql -delay 2 -file test2.db-journal {
drh66560ad2006-01-06 14:32:19 +0000152 ATTACH 'test2.db' as aux;
153 PRAGMA cache_size = 10;
154 BEGIN;
155 CREATE TABLE aux.t2(a, b, c);
156 CREATE TABLE t1(a, b, c);
157 COMMIT;
158 }]
159 if {$rc!="1 {child process exited abnormally}"} {
160 error "Wrong error message: $rc"
161 }
162 } -sqlbody {
163 SELECT * FROM sqlite_master;
164 SELECT * FROM aux.sqlite_master;
danielk197732554c12005-01-22 03:39:39 +0000165 }
danielk1977aca790a2005-01-13 11:07:52 +0000166 }
danielk197732554c12005-01-22 03:39:39 +0000167}
danielk197701427a62005-01-11 13:02:33 +0000168
danielk1977aca790a2005-01-13 11:07:52 +0000169# Test handling of IO errors that occur while rolling back hot journal
170# files.
danielk1977ca670712005-01-19 03:47:15 +0000171#
172# These tests can't be run on windows because the windows version of
173# SQLite holds a mandatory exclusive lock on journal files it has open.
174#
175if {$tcl_platform(platform)!="windows"} {
danielk197732554c12005-01-22 03:39:39 +0000176 do_ioerr_test ioerr-7 -tclprep {
danielk1977ca670712005-01-19 03:47:15 +0000177 db close
178 sqlite3 db2 test2.db
179 db2 eval {
180 PRAGMA synchronous = 0;
181 CREATE TABLE t1(a, b);
182 INSERT INTO t1 VALUES(1, 2);
183 BEGIN;
184 INSERT INTO t1 VALUES(3, 4);
185 }
mistachkinfda06be2011-08-02 00:57:34 +0000186 forcecopy test2.db test.db
187 forcecopy test2.db-journal test.db-journal
danielk1977ca670712005-01-19 03:47:15 +0000188 db2 close
189 } -tclbody {
190 sqlite3 db test.db
191 db eval {
192 SELECT * FROM t1;
193 }
194 } -exclude 1
195}
danielk1977aca790a2005-01-13 11:07:52 +0000196
drhf0bce092005-08-20 13:47:41 +0000197# For test coverage: Cause an I/O failure while trying to read a
198# short field (one that fits into a Mem buffer without mallocing
199# for space).
200#
danielk19774abd5442008-05-05 15:26:50 +0000201do_ioerr_test ioerr-8 -ckrefcount true -tclprep {
drhf0bce092005-08-20 13:47:41 +0000202 execsql {
203 CREATE TABLE t1(a,b,c);
204 INSERT INTO t1 VALUES(randstr(200,200), randstr(1000,1000), 2);
205 }
206 db close
207 sqlite3 db test.db
208} -sqlbody {
209 SELECT c FROM t1;
210}
211
danielk19778a7aea32006-01-23 15:25:48 +0000212# For test coverage: Cause an IO error whilst reading the master-journal
213# name from a journal file.
drhbe1f84c2006-01-23 16:25:22 +0000214if {$tcl_platform(platform)=="unix"} {
danielk19774abd5442008-05-05 15:26:50 +0000215 do_ioerr_test ioerr-9 -ckrefcount true -tclprep {
drhbe1f84c2006-01-23 16:25:22 +0000216 execsql {
217 CREATE TABLE t1(a,b,c);
218 INSERT INTO t1 VALUES(randstr(200,200), randstr(1000,1000), 2);
219 BEGIN;
220 INSERT INTO t1 VALUES(randstr(200,200), randstr(1000,1000), 2);
221 }
mistachkinfda06be2011-08-02 00:57:34 +0000222 forcecopy test.db-journal test2.db-journal
drhbe1f84c2006-01-23 16:25:22 +0000223 execsql {
224 COMMIT;
225 }
mistachkinfda06be2011-08-02 00:57:34 +0000226 forcecopy test2.db-journal test.db-journal
drhbe1f84c2006-01-23 16:25:22 +0000227 set f [open test.db-journal a]
228 fconfigure $f -encoding binary
229 puts -nonewline $f "hello"
230 puts -nonewline $f "\x00\x00\x00\x05\x01\x02\x03\x04"
231 puts -nonewline $f "\xd9\xd5\x05\xf9\x20\xa1\x63\xd7"
232 close $f
233 } -sqlbody {
234 SELECT a FROM t1;
danielk19778a7aea32006-01-23 15:25:48 +0000235 }
danielk19778a7aea32006-01-23 15:25:48 +0000236}
237
238# For test coverage: Cause an IO error during statement playback (i.e.
239# a constraint).
danielk19774abd5442008-05-05 15:26:50 +0000240do_ioerr_test ioerr-10 -ckrefcount true -tclprep {
danielk19778a7aea32006-01-23 15:25:48 +0000241 execsql {
242 BEGIN;
243 CREATE TABLE t1(a PRIMARY KEY, b);
244 }
245 for {set i 0} {$i < 500} {incr i} {
danielk197712f5e202006-02-10 13:33:30 +0000246 execsql {INSERT INTO t1 VALUES(:i, 'hello world');}
danielk19778a7aea32006-01-23 15:25:48 +0000247 }
248 execsql {
249 COMMIT;
250 }
251} -tclbody {
252
253 catch {execsql {
254 BEGIN;
255 INSERT INTO t1 VALUES('abc', 123);
256 INSERT INTO t1 VALUES('def', 123);
257 INSERT INTO t1 VALUES('ghi', 123);
258 INSERT INTO t1 SELECT (a+500)%900, 'good string' FROM t1;
259 }} msg
260
dan1b4b3342013-11-28 19:28:00 +0000261 if {$msg != "UNIQUE constraint failed: t1.a"} {
danielk19778a7aea32006-01-23 15:25:48 +0000262 error $msg
263 }
264}
265
drhd5eb79e2007-03-15 12:17:42 +0000266# Assertion fault bug reported by alex dimitrov.
267#
danielk19774abd5442008-05-05 15:26:50 +0000268do_ioerr_test ioerr-11 -ckrefcount true -erc 1 -sqlprep {
drhd5eb79e2007-03-15 12:17:42 +0000269 CREATE TABLE A(Id INTEGER, Name TEXT);
270 INSERT INTO A(Id, Name) VALUES(1, 'Name');
271} -sqlbody {
272 UPDATE A SET Id = 2, Name = 'Name2' WHERE Id = 1;
273}
274
danielk1977d7d2f932007-09-01 17:00:12 +0000275# Test that an io error encountered in a sync() caused by a call to
276# sqlite3_release_memory() is handled Ok. Only try this if
277# memory-management is enabled.
278#
279ifcapable memorymanage {
danielk19774abd5442008-05-05 15:26:50 +0000280 do_ioerr_test memmanage-ioerr1 -ckrefcount true -sqlprep {
danielk1977d7d2f932007-09-01 17:00:12 +0000281 BEGIN;
282 CREATE TABLE t1(a, b, c);
283 INSERT INTO t1 VALUES(randstr(50,50), randstr(100,100), randstr(10,10));
284 INSERT INTO t1 SELECT randstr(50,50), randstr(9,9), randstr(90,90) FROM t1;
285 INSERT INTO t1 SELECT randstr(50,50), randstr(9,9), randstr(90,90) FROM t1;
286 INSERT INTO t1 SELECT randstr(50,50), randstr(9,9), randstr(90,90) FROM t1;
287 INSERT INTO t1 SELECT randstr(50,50), randstr(9,9), randstr(90,90) FROM t1;
288 INSERT INTO t1 SELECT randstr(50,50), randstr(9,9), randstr(90,90) FROM t1;
289 } -tclbody {
290 sqlite3_release_memory
291 } -sqlbody {
292 COMMIT;
293 }
294}
295
danielk19773aa4b672008-07-08 10:19:58 +0000296ifcapable pager_pragmas&&autovacuum {
297 do_ioerr_test ioerr-12 -ckrefcount true -erc 1 -sqlprep {
298 PRAGMA page_size = 512;
299 PRAGMA auto_vacuum = incremental;
300 CREATE TABLE t1(x);
301 INSERT INTO t1 VALUES( randomblob(1 * (512-4)) );
302 INSERT INTO t1 VALUES( randomblob(110 * (512-4)) );
303 INSERT INTO t1 VALUES( randomblob(2 * (512-4)) );
304 INSERT INTO t1 VALUES( randomblob(110 * (512-4)) );
305 INSERT INTO t1 VALUES( randomblob(3 * (512-4)) );
306 DELETE FROM t1 WHERE rowid = 3;
307 PRAGMA incremental_vacuum = 2;
308 DELETE FROM t1 WHERE rowid = 1;
309 } -sqlbody {
310 PRAGMA incremental_vacuum = 1;
311 }
312}
313
danielk19771bc71592008-07-08 17:13:59 +0000314# Usually, after a new page is allocated from the end of the file, it does
315# not need to be written to the journal. The exception is when the new page
316# shares its sector with an existing page that does need to be journalled.
317# This test case provokes this condition to test for the sake of coverage
318# that an IO error while journalling the coresident page is handled correctly.
319#
320sqlite3_simulate_device -char {} -sectorsize 2048
321do_ioerr_test ioerr-12 -ckrefcount true -erc 1 -tclprep {
322 db close
323 sqlite3 db test.db -vfs devsym
324
325 # Create a test database. Page 2 is the root page of table t1. The only
326 # row inserted into t1 has an overflow page - page 3. Page 3 will be
327 # coresident on the 2048 byte sector with the next page to be allocated.
328 #
329 db eval { PRAGMA page_size = 1024 }
330 db eval { CREATE TABLE t1(x) }
331 db eval { INSERT INTO t1 VALUES(randomblob(1100)); }
332} -tclbody {
333 db eval { INSERT INTO t1 VALUES(randomblob(2000)); }
334}
335sqlite3_simulate_device -char {} -sectorsize 0
danielk1977474b7cc2008-07-09 11:49:46 +0000336catch {db close}
337
338do_ioerr_test ioerr-13 -ckrefcount true -erc 1 -sqlprep {
339 PRAGMA auto_vacuum = incremental;
340 CREATE TABLE t1(x);
341 CREATE TABLE t2(x);
342 INSERT INTO t2 VALUES(randomblob(1500));
343 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
344 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
345 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
346 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
347 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
348 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
349 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
350 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
351 INSERT INTO t1 VALUES(randomblob(20));
352 INSERT INTO t1 SELECT x FROM t1;
353 INSERT INTO t1 SELECT x FROM t1;
354 INSERT INTO t1 SELECT x FROM t1;
355 INSERT INTO t1 SELECT x FROM t1;
356 INSERT INTO t1 SELECT x FROM t1;
357 INSERT INTO t1 SELECT x FROM t1; /* 64 entries in t1 */
358 INSERT INTO t1 SELECT x FROM t1 LIMIT 14; /* 78 entries in t1 */
359 DELETE FROM t2 WHERE rowid = 3;
360} -sqlbody {
361 -- This statement uses the balance_quick() optimization. The new page
362 -- is appended to the database file. But the overflow page used by
363 -- the new record will be positioned near the start of the database
364 -- file, in the gap left by the "DELETE FROM t2 WHERE rowid=3" statement
365 -- above.
366 --
367 -- The point of this is that the statement wil need to update two pointer
368 -- map pages. Which introduces another opportunity for an IO error.
369 --
370 INSERT INTO t1 VALUES(randomblob(2000));
371}
372
373do_ioerr_test ioerr-14 -ckrefcount true -erc 1 -sqlprep {
374 PRAGMA auto_vacuum = incremental;
375 CREATE TABLE t1(x);
376 CREATE TABLE t2(x);
377 INSERT INTO t2 VALUES(randomblob(1500));
378 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
379 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
380 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
381 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
382 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
383 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
384 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
385 INSERT INTO t2 SELECT randomblob(1500) FROM t2;
386
387 -- This statement inserts a row into t1 with an overflow page at the
388 -- end of the file. A long way from its parent (the root of t1).
389 INSERT INTO t1 VALUES(randomblob(1500));
390 DELETE FROM t2 WHERE rowid<10;
391} -sqlbody {
392 -- This transaction will cause the root-page of table t1 to divide
393 -- (by calling balance_deeper()). When it does, the "parent" page of the
394 -- overflow page inserted in the -sqlprep block above will change and
395 -- the corresponding pointer map page be updated. This test case attempts
396 -- to cause an IO error during the pointer map page update.
397 --
398 BEGIN;
399 INSERT INTO t1 VALUES(randomblob(100));
400 INSERT INTO t1 VALUES(randomblob(100));
401 INSERT INTO t1 VALUES(randomblob(100));
402 INSERT INTO t1 VALUES(randomblob(100));
403 INSERT INTO t1 VALUES(randomblob(100));
404 INSERT INTO t1 VALUES(randomblob(100));
405 INSERT INTO t1 VALUES(randomblob(100));
406 INSERT INTO t1 VALUES(randomblob(100));
407 INSERT INTO t1 VALUES(randomblob(100));
408 INSERT INTO t1 VALUES(randomblob(100));
409 COMMIT;
410}
danielk19771bc71592008-07-08 17:13:59 +0000411
danielk197736e20932008-11-26 07:40:30 +0000412do_ioerr_test ioerr-15 -tclprep {
413 db eval {
414 BEGIN;
415 PRAGMA cache_size = 10;
416 CREATE TABLE t1(a);
417 CREATE INDEX i1 ON t1(a);
418 CREATE TABLE t2(a);
419 }
420 for {set ii 1} {$ii < 100} {incr ii} {
421 set v [string range [string repeat [format %.3d $ii] 200] 0 220]
422 db eval {INSERT INTO t1 VALUES($v)}
423 }
424 db eval {
425 DELETE FROM t1 WHERE oid > 85;
426 COMMIT;
427 }
428} -sqlbody {
429 BEGIN;
430 INSERT INTO t2 VALUES(randstr(22000,22000));
431 DELETE FROM t1 WHERE oid = 83;
432 COMMIT;
433}
434
danielk1977ef165ce2009-04-06 17:50:03 +0000435# This test verifies that IO errors that occur within the obscure branch
436# of code executed by tkt3762.test are correctly reported.
437#
438ifcapable vacuum&&autovacuum&&pragma {
439 do_ioerr_test ioerr-16 -erc 1 -ckrefcount 1 -sqlprep {
440 PRAGMA auto_vacuum=INCREMENTAL;
441 PRAGMA page_size=1024;
442 BEGIN;
443 CREATE TABLE t1(x);
444 INSERT INTO t1 VALUES(zeroblob(900));
445 INSERT INTO t1 VALUES(zeroblob(900));
446 INSERT INTO t1 SELECT x FROM t1;
447 INSERT INTO t1 SELECT x FROM t1;
448 INSERT INTO t1 SELECT x FROM t1;
449 INSERT INTO t1 SELECT x FROM t1;
450 INSERT INTO t1 SELECT x FROM t1;
451 INSERT INTO t1 SELECT x FROM t1;
452 INSERT INTO t1 SELECT x FROM t1;
453 DELETE FROM t1 WHERE rowid>202;
454 COMMIT;
455 VACUUM;
456 PRAGMA cache_size = 10;
457 BEGIN;
458 DELETE FROM t1 WHERE rowid IN (10,11,12) ;
459 } -sqlbody {
460 PRAGMA incremental_vacuum(10);
461 COMMIT;
462 }
463}
464
drh81a20f22001-10-12 17:30:04 +0000465finish_test