aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/select.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/select.c b/src/select.c
index 9e070be0b..fcf8ae78d 100644
--- a/src/select.c
+++ b/src/select.c
@@ -5266,11 +5266,13 @@ static int disableUnusedSubqueryResultColumns(SrcItem *pItem){
** use UNION, INTERSECT, or EXCEPT. Only UNION ALL is allowed. */
return 0;
}
+#ifndef SQLITE_OMIT_WINDOWFUNC
if( pX->pWin ){
/* This optimization does not work for subqueries that use window
** functions. */
return 0;
}
+#endif
}
colUsed = pItem->colUsed;
if( pSub->pOrderBy ){