aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-07-20 21:12:31 +0000
committerdrh <drh@noemail.net>2019-07-20 21:12:31 +0000
commitfd15e18d7fe9bea571c52324a6eae25f3e2b4ebc (patch)
treebd8b165785a7d5761f90defafd8c9f9b1cf0cf55 /src/sqliteInt.h
parent7fc296aa662e02fc715facf50b6fb095794d7641 (diff)
downloadsqlite-fd15e18d7fe9bea571c52324a6eae25f3e2b4ebc.tar.gz
sqlite-fd15e18d7fe9bea571c52324a6eae25f3e2b4ebc.zip
Make sure any window definitions in an ORDER BY clause are removed from
the SELECT statement if the ORDER BY clause gets optimized out. FossilOrigin-Name: 23b119671f0be3c6b72cf2dc5f7707a0626766db7aa56529ab00d33d1a0a1bee
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 837e056cf..0d3e19efc 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3627,10 +3627,14 @@ Window *sqlite3WindowListDup(sqlite3 *db, Window *p);
void sqlite3WindowFunctions(void);
void sqlite3WindowChain(Parse*, Window*, Window*);
Window *sqlite3WindowAssemble(Parse*, Window*, ExprList*, ExprList*, Token*);
+void sqlite3WindowRemoveExprFromSelect(Select*,Expr*);
+void sqlite3WindowRemoveExprListFromSelect(Select*,ExprList*);
#else
# define sqlite3WindowDelete(a,b)
# define sqlite3WindowFunctions()
# define sqlite3WindowAttach(a,b,c)
+# define sqlite3WindowRemoveExprFromSelect(Select*,Expr*);
+# define sqlite3WindowRemoveExprListFromSelect(Select*,ExprList*);
#endif
/*