mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Remove assert() statements based on the counter-factual proposition that 0 is not a valid cursor number.
FossilOrigin-Name: c7b336181aac6785a515f275c0f50ad4bf2dee20abde959b56d968a7fdce3e5b
This commit is contained in:
@@ -1262,14 +1262,12 @@ void sqlite3WindowCodeInit(Parse *pParse, Window *pMWin){
|
||||
else if( p->zName==nth_valueName || p->zName==first_valueName ){
|
||||
/* Allocate two registers at pWin->regApp. These will be used to
|
||||
** store the start and end index of the current frame. */
|
||||
assert( pMWin->iEphCsr );
|
||||
pWin->regApp = pParse->nMem+1;
|
||||
pWin->csrApp = pParse->nTab++;
|
||||
pParse->nMem += 2;
|
||||
sqlite3VdbeAddOp2(v, OP_OpenDup, pWin->csrApp, pMWin->iEphCsr);
|
||||
}
|
||||
else if( p->zName==leadName || p->zName==lagName ){
|
||||
assert( pMWin->iEphCsr );
|
||||
pWin->csrApp = pParse->nTab++;
|
||||
sqlite3VdbeAddOp2(v, OP_OpenDup, pWin->csrApp, pMWin->iEphCsr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user