1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

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
This commit is contained in:
drh
2019-02-01 15:06:27 +00:00
parent 38a28a7434
commit 9c46c66c46
3 changed files with 8 additions and 7 deletions

View File

@@ -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);
}