mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Fix a bug in the linked-list handling code added by commit [fd7316cd].
FossilOrigin-Name: 05080344dceafcfb670fbf01f7d69a1d713a54b6845f968a9cfe941fb53b13af
This commit is contained in:
@@ -1330,8 +1330,8 @@ static int gatherSelectWindowsCallback(Walker *pWalker, Expr *pExpr){
|
||||
Window *pWin = pExpr->y.pWin;
|
||||
assert( pWin );
|
||||
assert( IsWindowFunc(pExpr) );
|
||||
assert( pWin->ppThis==0 );
|
||||
if( pSelect->pWin ){
|
||||
*pSelect->pWin->ppThis = pSelect->pWin->pNextWin;
|
||||
pSelect->pWin->ppThis = &pWin->pNextWin;
|
||||
}
|
||||
pWin->pNextWin = pSelect->pWin;
|
||||
|
||||
Reference in New Issue
Block a user