Fix a problem with renaming a table when the schema contains an invocation of a window function that is not currently registered.
FossilOrigin-Name: ff290feb97f689cf6ce4162d6aa36f9f9dcf1bff3096847d53a85f39f728d2de
diff --git a/src/resolve.c b/src/resolve.c
index 54475f6..8702048 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -891,6 +891,11 @@
#endif
}
}
+#ifndef SQLITE_OMIT_WINDOWFUNC
+ else if( pWin ){
+ is_agg = 1;
+ }
+#endif
sqlite3WalkExprList(pWalker, pList);
if( is_agg ){
#ifndef SQLITE_OMIT_WINDOWFUNC