Allow min() and max() to be used as window functions.
FossilOrigin-Name: c16125a884a9131b707ac20033968c4c3177ea79625a15efb64d754568c6c7a0
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 35db193..6835c45 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3479,11 +3479,15 @@
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 */