aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordan <dan@noemail.net>2018-05-30 20:44:58 +0000
committerdan <dan@noemail.net>2018-05-30 20:44:58 +0000
commitc9a8668ac77dee583029d62fa14406ce5b36409c (patch)
treee7923b43917abb7f03808b465ba4db9a8c2972f4 /src/sqliteInt.h
parentd6f784ef92b69b245a797b4b31798027b01e9520 (diff)
downloadsqlite-c9a8668ac77dee583029d62fa14406ce5b36409c.tar.gz
sqlite-c9a8668ac77dee583029d62fa14406ce5b36409c.zip
Allow min() and max() to be used as window functions.
FossilOrigin-Name: c16125a884a9131b707ac20033968c4c3177ea79625a15efb64d754568c6c7a0
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 35db19397..6835c4536 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -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 */