Skip to content

Commit

Permalink
Remove an unreachable branch from the index-on-expression optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
D. Richard Hipp committed Sep 16, 2018
1 parent 3b21d84 commit f9f70db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ static int indexColumnIsBeingUpdated(
int chngRowid /* true if the rowid is being updated */
){
i16 iIdxCol = pIdx->aiColumn[iCol];
assert( iIdxCol!=XN_ROWID ); /* Cannot index rowid */
if( iIdxCol>=0 ){
return aXRef[iIdxCol]>=0;
}
if( iIdxCol==XN_ROWID ) return 1;
assert( iIdxCol==XN_EXPR );
assert( pIdx->aColExpr!=0 );
assert( pIdx->aColExpr->a[iCol].pExpr!=0 );
Expand Down

0 comments on commit f9f70db

Please sign in to comment.