1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix a comment in expr.c and add a CORRUPT_DB to an assert() in btree.c.

FossilOrigin-Name: 0df371d1a51c2028aefa4c704707773750317689
This commit is contained in:
drh
2015-10-16 23:55:08 +00:00
parent f170ea44d4
commit b0df963465
4 changed files with 16 additions and 10 deletions

View File

@@ -4499,7 +4499,9 @@ static int accessPayload(
/* If required, populate the overflow page-list cache. */
if( (pCur->curFlags & BTCF_ValidOvfl)!=0 ){
assert(!pCur->aOverflow[iIdx] || pCur->aOverflow[iIdx]==nextPage);
assert( pCur->aOverflow[iIdx]==0
|| pCur->aOverflow[iIdx]==nextPage
|| CORRUPT_DB );
pCur->aOverflow[iIdx] = nextPage;
}