aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordan <dan@noemail.net>2019-07-22 16:33:02 +0000
committerdan <dan@noemail.net>2019-07-22 16:33:02 +0000
commit7f6f12bdd35c55d9f98b6eefbe2d40c4a85aab87 (patch)
treec90be8f5173dfe1513abdfe7ae4a356f4f82bd9c /src/sqliteInt.h
parent1e60261cfbc34cdad2625241ba6e5bedfb2e6716 (diff)
parent75b0821e999cb14d4081a6ff8090e28e49e5bc7e (diff)
downloadsqlite-7f6f12bdd35c55d9f98b6eefbe2d40c4a85aab87.tar.gz
sqlite-7f6f12bdd35c55d9f98b6eefbe2d40c4a85aab87.zip
Remove Window objects from the corresponding Select.pWin list when they are deleted, as they are, for example, when the ORDER BY clause is optimized out.
FossilOrigin-Name: fd7316cda0fdfe86985f41a97dff3beba188606ec9bc6fef38a686a6976a6e01
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 837e056cf..e55eadea6 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3594,6 +3594,7 @@ struct Window {
u8 eExclude; /* TK_NO, TK_CURRENT, TK_TIES, TK_GROUP, or 0 */
Expr *pStart; /* Expression for "<expr> PRECEDING" */
Expr *pEnd; /* Expression for "<expr> FOLLOWING" */
+ Window **ppThis; /* Pointer to this object in Select.pWin list */
Window *pNextWin; /* Next window function belonging to this SELECT */
Expr *pFilter; /* The FILTER expression */
FuncDef *pFunc; /* The function */