1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Allow min() and max() to be used as window functions.

FossilOrigin-Name: c16125a884a9131b707ac20033968c4c3177ea79625a15efb64d754568c6c7a0
This commit is contained in:
dan
2018-05-30 20:44:58 +00:00
parent d6f784ef92
commit c9a8668ac7
8 changed files with 495 additions and 134 deletions

View File

@@ -3479,11 +3479,15 @@ struct Window {
Expr *pStart; /* Expression for "<expr> PRECEDING" */
Expr *pEnd; /* Expression for "<expr> FOLLOWING" */
Window *pNextWin; /* Next window function belonging to this SELECT */
FuncDef *pFunc;
int nArg;
int iEphCsr; /* Temp table used by this window */
int regAccum;
int regResult;
FuncDef *pFunc;
int nArg;
int csrApp; /* Function cursor (used by min/max) */
int regApp; /* Function register (also used by min/max) */
int regPart;
Expr *pOwner; /* Expression object this window is attached to */