1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

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.

FossilOrigin-Name: 15e4f63d1f3cbcd0aa789fd3e460cd6e4d3338f9
This commit is contained in:
drh
2013-11-29 15:06:27 +00:00
parent 1b4b334abb
commit 09fe614372
25 changed files with 169 additions and 33 deletions

View File

@@ -3112,8 +3112,9 @@ int sqlite3VdbeRecordCompare(
idx1 = getVarint32(aKey1, szHdr1);
d1 = szHdr1;
assert( pKeyInfo->nField+pKeyInfo->nXField>=pPKey2->nField );
assert( pKeyInfo->nField+pKeyInfo->nXField>=pPKey2->nField || CORRUPTIBLE );
assert( pKeyInfo->aSortOrder!=0 );
assert( (idx1<=szHdr1 && i<pPKey2->nField) || CORRUPTIBLE );
do{
u32 serial_type1;