SQLite

All files named ”test/corrupt2.test”
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for test/corrupt2.test

2024-07-30
17:09
[4ce5eadd51] part of check-in [e0d9670dd9] Get rid of "-encoding binary" across all test cases, as that is no longer supported in Tcl9. Use "-translation binary" instead. (check-in: [e0d9670dd9] user: drh branch: tcl9, size: 18042)
2023-05-18
23:25
[9745c55b3f] part of check-in [9b538f6253] Fix incorrect b-tree root page reports from the enhanced PRAGMA integrity_check output introduced in version 3.42.0. (check-in: [9b538f6253] user: drh branch: trunk, size: 18135)
2023-04-01
13:14
[6e0c1e1c2f] part of check-in [a1cb152e69] Improved error messages from PRAGMA integrity_check. Identify the root of the tree when a problem is found in a b-tree, making it easier to track the problem to a specific table or index. (check-in: [a1cb152e69] user: drh branch: trunk, size: 18136)
2019-02-11
17:22
[bb50042cf9] part of check-in [480a5090be] Fix test cases. Avoid unnecessary tests for MemPage.nFree less than zero. (check-in: [480a5090be] user: drh branch: deferred-free-space, size: 18134)
2018-11-06
19:26
[a7f95356d1] part of check-in [a1d6c6712c] Enable DEFENSIVE mode by default for tests. This requires lots of case of turning DEFENSIVE off in order to dodgy things to the database for testing purposes. No all of those cases are yet handled, so "make test" does not run to completion. (check-in: [a1d6c6712c] user: drh branch: read-only-shadow, size: 18052)
2018-07-20
13:39
[fdfdffab9b] part of check-in [11e58f5b37] Enhanced detection of problems on the freelist and on overflow list in PRAGMA integrity_check. (check-in: [11e58f5b37] user: drh branch: trunk, size: 17981)
2017-07-10
12:07
[b6281ceadd] part of check-in [f27b637040] Update error message text for standard error codes to better describe the latest usage of those error codes. Modify sqlite3_open_v2() so that it does return a valid sqlite3 object in the event of SQLITE_MISUSE due to bad open flags, so that sqlite3_errmsg() does not report "out of memory" in that case. (check-in: [f27b637040] user: drh branch: trunk, size: 17974)
2016-03-15
12:37
[e4964cee73] part of check-in [2fd095b14b] More test-case changes so that everything works when the reserved_bytes value in the header is non-zero. (check-in: [2fd095b14b] user: drh branch: trunk, size: 18006)
2015-09-18
14:45
[cb787825d7] part of check-in [26f64986d1] Ensure that "PRAGMA integrity_check" reports an error if the free-list count header field contains a value smaller than the actual number of pages on the database free-list. (check-in: [26f64986d1] user: dan branch: trunk, size: 17923)
2015-07-02
16:17
[08cec1e5ff] part of check-in [251a7590ff] Smaller and faster PRAGMA integrity_check that also does a better job of detecting errors. Some output text describing discovered file corruption has changed for clarity. (check-in: [251a7590ff] user: drh branch: trunk, size: 16802)
2015-07-01
17:13
[929c68b858] part of check-in [1c52212369] Rework the PRAGMA integrity_check logic. Simplify the checkTreePage() routine and clean up the error messages generated. (check-in: [1c52212369] user: drh branch: integrity-check-refactor, size: 16836)
2013-11-29
15:06
[f2064e0bf9] part of check-in [15e4f63d1f] Add a new sqlite3_test_control() that indicates that database files are always well-formed. Use this during testing to enable assert() statements that prove conditions that are always true for well-formed databases. (check-in: [15e4f63d1f] user: drh branch: trunk, size: 16850)
2013-11-01
17:21
[b8174976fa] part of check-in [dd5d57b9a1] Merge all changes from trunk, and disable a pair of corruption tests that are no longer valid since sqlite_master.rootpage can now be NULL for tables. (check-in: [dd5d57b9a1] user: drh branch: omit-rowid, size: 16989)
2013-03-27
19:53
[7db8c262e7] part of check-in [0e3d511927] Modify various test cases so that they work if the file is extended in units of the system page-size. (check-in: [0e3d511927] user: dan branch: two-mappings, size: 16768)
2011-08-02
00:57
[9c0ab4becd] part of check-in [9007586fda] Add retry logic for AV defense to winOpen. Also, refactor test suite to allow the key Tcl file operations (e.g. copy and delete) to be retried. (check-in: [9007586fda] user: mistachkin branch: winopen-retry-logic, size: 16776)
2010-07-08
09:44
[808a28d0ca] part of check-in [f553c8ed04] Changes to test scripts so that the "inmemory_journal" permutation works with [ef126e775a]. (check-in: [f553c8ed04] user: dan branch: trunk, size: 16888)
2010-06-22
13:46
[ada8f27dd4] part of check-in [85dd51a75c] Some changes to test scripts related to codec enabled versions of sqlite. (check-in: [85dd51a75c] user: dan branch: trunk, size: 16500)
2010-03-27
17:12
[576122d756] part of check-in [b844ac6fcb] Experimental changes that cause SQLite to use bytes 28..31 of the database header to determine the database size, rather than using the actual database size. This allows database space to be preallocated. (check-in: [b844ac6fcb] user: drh branch: experimental, size: 16335)
2009-04-06
17:50
[a571e30ea4] part of check-in [def3a01691] Test cases and minor code changes to increase coverage of btree.c. (CVS 6456) (check-in: [def3a01691] user: danielk1977 branch: trunk, size: 16257)
2009-04-02
18:28
[465786cf3f] part of check-in [8f1423445b] Fix a problem causing the BtShared.isPending flag to be cleared to early. Also coverage improvements for btree.c. (CVS 6440) (check-in: [8f1423445b] user: danielk1977 branch: trunk, size: 15177)
2008-09-29
11:49
[b83f690753] part of check-in [40425e9342] Instead of storing a pointer to the parent page in the MemPage structure, have each B-Tree cursor keep track of the ancestry of the current page. (CVS 5747) (check-in: [40425e9342] user: danielk1977 branch: trunk, size: 13571)
2008-09-10
11:28
[08fb049fdf] part of check-in [099adfd311] Avoid deleting a file while it is still open in corrupt2.test. Not all platforms support this. (CVS 5687) (check-in: [099adfd311] user: danielk1977 branch: trunk, size: 13673)
2008-09-08
09:06
[62a2773b86] part of check-in [a7b7b126e9] If the 'rootpage' column of the sqlite_master table contains a NULL value, return SQLITE_CORRUPT to the caller. (CVS 5681) (check-in: [a7b7b126e9] user: danielk1977 branch: trunk, size: 13662)
2008-08-27
16:14
[d1e209b0a6] part of check-in [12f2d24f88] Clear the $result variable prior to using it in corrupt2.test. (CVS 5624) (check-in: [12f2d24f88] user: drh branch: trunk, size: 13274)
2008-08-02
20:09
[a6b9051516] part of check-in [e63186b0b6] Test scripts revised to work when auto_vacuum defaults on. (CVS 5528) (check-in: [e63186b0b6] user: drh branch: trunk, size: 13249)
2008-07-08
17:13
[e56f45006e] part of check-in [d74fbb81ca] Test another corruption case in btree.c. And an IO error related scenario. (CVS 5371) (check-in: [d74fbb81ca] user: danielk1977 branch: trunk, size: 13150)
15:59
[26810e0019] part of check-in [96df0a5fa4] 3 more coverage tests for btree.c. (CVS 5370) (check-in: [96df0a5fa4] user: danielk1977 branch: trunk, size: 11858)
14:31
[e4b03d9d48] part of check-in [f781a68127] Another corruption related test case. (CVS 5367) (check-in: [f781a68127] user: danielk1977 branch: trunk, size: 10471)
12:07
[30a89c762c] part of check-in [08334f6030] Extra coverage tests for btree.c. (CVS 5365) (check-in: [08334f6030] user: danielk1977 branch: trunk, size: 9429)
10:19
[bef3b73ffd] part of check-in [f6d9cb835b] Improve coverage of btree.c. (CVS 5363) (check-in: [f6d9cb835b] user: danielk1977 branch: trunk, size: 8871)
2008-07-07
17:55
[33c1546286] part of check-in [2dcd5287a0] Fix a problem in shared_err.test preventing it from running properly and add a test to corrupt2.test to cover another corruption detection case. (CVS 5355) (check-in: [2dcd5287a0] user: danielk1977 branch: trunk, size: 6030)
17:04
[056c97ae31] part of check-in [38e04d6763] Another test case to test a specific kind of database corruption. (CVS 5352) (check-in: [38e04d6763] user: danielk1977 branch: trunk, size: 5922)
15:39
[a18ee59915] part of check-in [cbb9536fc4] Add a test case to test corruption discovered as part of the ptrmapPut() routine. (CVS 5351) (check-in: [cbb9536fc4] user: danielk1977 branch: trunk, size: 4531)
2008-03-19
13:03
[8059c7354a] part of check-in [57805b588f] When a parse of the sqlite_master table fails, include the name of the object being parsed as part of the error message. (CVS 4881) (check-in: [57805b588f] user: drh branch: trunk, size: 3337)
2007-03-13
16:32
[572f8df030] part of check-in [48b2a40008] Do not crash when a corrupt database contains two indices with the same name. (CVS 3684) (check-in: [48b2a40008] user: danielk1977 branch: trunk, size: 3340)
2007-02-14
12:32
[bf57d744ab] part of check-in [50e86b0368] In the corrupt2.test script, change uses of (open ... a) to (open ... RDWR) to work around inconsistencies in behavior across various platforms. (CVS 3645) (check-in: [50e86b0368] user: drh branch: trunk, size: 2681)
2005-01-22
03:39
[8834257082] part of check-in [764b55adb5] Test script changes: Bug fix and cleanup on ioerr tests. Also, don't use TCL "file copy" command on windows. (CVS 2264) (check-in: [764b55adb5] user: danielk1977 branch: trunk, size: 2678)
2005-01-11
10:25
Added: [cb1f813df7] part of check-in [8ced491588] Test cases to improve coverage of btree.c (and minor bugfixes). (CVS 2190) (check-in: [8ced491588] user: danielk1977 branch: trunk, size: 2678)