aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-02-01 15:06:27 +0000
committerdrh <drh@noemail.net>2019-02-01 15:06:27 +0000
commit9c46c66c46b84290567efb552fb09e80bc758fca (patch)
tree7d8b5e368f21171139d8093fc53f1ae129a0f983 /src
parent38a28a7434d75c27cdeabf9d30fd66eaed3d5625 (diff)
downloadsqlite-9c46c66c46b84290567efb552fb09e80bc758fca.tar.gz
sqlite-9c46c66c46b84290567efb552fb09e80bc758fca.zip
Ensure that the Walker.pParse structure is initialized when walking the
source tree to gather the WINDOW clauses on a query with window functions. FossilOrigin-Name: 4ca9d5d53d41d08fbce29f9da8cc0948df9c4c3136210af88b499cf889b5ccb8
Diffstat (limited to 'src')
-rw-r--r--src/expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c
index ec71326e4..a9ae85098 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -1363,6 +1363,7 @@ static void gatherSelectWindows(Select *p){
w.xExprCallback = gatherSelectWindowsCallback;
w.xSelectCallback = gatherSelectWindowsSelectCallback;
w.xSelectCallback2 = 0;
+ w.pParse = 0;
w.u.pSelect = p;
sqlite3WalkSelect(&w, p);
}