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

Update an assert statement that could fail when using "PRAGMA writable_schema = 1" to access a database with a corrupt schema.

FossilOrigin-Name: 55cad6f628a4313c6652b36474c3397f097ac5c2503ae94605c030a54dc40916
This commit is contained in:
dan
2021-04-06 18:02:17 +00:00
parent d73ade7d87
commit 112501fec2
4 changed files with 36 additions and 9 deletions

View File

@@ -9110,7 +9110,7 @@ int sqlite3BtreeDelete(BtCursor *pCur, u8 flags){
rc = btreeRestoreCursorPosition(pCur);
if( rc ) return rc;
}
assert( pCur->eState==CURSOR_VALID );
assert( CORRUPT_DB || pCur->eState==CURSOR_VALID );
iCellDepth = pCur->iPage;
iCellIdx = pCur->ix;