aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2019-01-23 16:59:24 +0000
committerdan <dan@noemail.net>2019-01-23 16:59:24 +0000
commitd99950310ff4477be8df292744e91d783897263e (patch)
tree5ab274dedcc7f09bb269cb37b08af887ea57ff8a /src/expr.c
parent4c7bdd159755ab03afff1825def5e7b88ac1ed4b (diff)
downloadsqlite-d99950310ff4477be8df292744e91d783897263e.tar.gz
sqlite-d99950310ff4477be8df292744e91d783897263e.zip
Fix problems with sub-selects in WINDOW definitions. Also rename-column operations when the column being renamed appears in a WINDOW definition that is part of a VIEW or TRIGGER.
FossilOrigin-Name: 0387cb3add992b2028efe4f2100188d8f9fdfdcb233329857aa4b46a293cfc97
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c
index bdb925f01..ec71326e4 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -5366,6 +5366,7 @@ void sqlite3ExprAnalyzeAggregates(NameContext *pNC, Expr *pExpr){
w.xSelectCallback2 = analyzeAggregatesInSelectEnd;
w.walkerDepth = 0;
w.u.pNC = pNC;
+ w.pParse = 0;
assert( pNC->pSrcList!=0 );
sqlite3WalkExpr(&w, pExpr);
}