mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Ensure that when code for a scalar SELECT featuring window functions is generated more than once by the planner, separate ephemeral tables are opened for each instance.
FossilOrigin-Name: ce1417325273aba866767349b55d9bbfb61a08e716bebda2122918a9657ee38c
This commit is contained in:
@@ -6177,7 +6177,7 @@ int sqlite3Select(
|
||||
#ifndef SQLITE_OMIT_WINDOWFUNC
|
||||
Window *pWin = p->pWin; /* Master window object (or NULL) */
|
||||
if( pWin ){
|
||||
sqlite3WindowCodeInit(pParse, pWin);
|
||||
sqlite3WindowCodeInit(pParse, p);
|
||||
}
|
||||
#endif
|
||||
assert( WHERE_USE_LIMIT==SF_FixedLimit );
|
||||
|
||||
Reference in New Issue
Block a user