mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-16 23:02:26 +03:00
Fix an assert() statement in the covering index optimization for the corner
case of dealing with an sqlite_offset() SQL function call. FossilOrigin-Name: 3950b7d006add571579158c751247a9435801e53eafd84b43dd3046e01da8ee6
This commit is contained in:
@@ -6165,6 +6165,9 @@ void sqlite3WhereEnd(WhereInfo *pWInfo){
|
||||
OpcodeRewriteTrace(db, k, pOp);
|
||||
}
|
||||
assert( (pLoop->wsFlags & WHERE_IDX_ONLY)==0 || x>=0
|
||||
#ifdef SQLITE_ENABLE_OFFSET_SQL_FUNC
|
||||
|| pOp->opcode==OP_Offset
|
||||
#endif
|
||||
|| pWInfo->eOnePass );
|
||||
}else if( pOp->opcode==OP_Rowid ){
|
||||
pOp->p1 = pLevel->iIdxCur;
|
||||
|
||||
Reference in New Issue
Block a user