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

Change an unreachable branch into an assert().

FossilOrigin-Name: fb076b28c36975ff2e41440f22fe5de115c195da
This commit is contained in:
drh
2015-03-25 18:29:10 +00:00
parent d2f83139f3
commit 606a357288
3 changed files with 9 additions and 8 deletions

View File

@@ -815,9 +815,10 @@ int sqlite3BtreeCursorRestore(BtCursor *pCur, int *pDifferentRow){
*pDifferentRow = 1;
return rc;
}
if( pCur->eState!=CURSOR_VALID || pCur->skipNext!=0 ){
if( pCur->eState!=CURSOR_VALID ){
*pDifferentRow = 1;
}else{
assert( pCur->skipNext==0 );
*pDifferentRow = 0;
}
return SQLITE_OK;