1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

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
This commit is contained in:
dan
2019-07-19 14:32:42 +00:00
parent 750c6ba5e5
commit 9bf022d57c
4 changed files with 26 additions and 8 deletions

View File

@@ -891,6 +891,11 @@ static int resolveExprStep(Walker *pWalker, Expr *pExpr){
#endif
}
}
#ifndef SQLITE_OMIT_WINDOWFUNC
else if( pWin ){
is_agg = 1;
}
#endif
sqlite3WalkExprList(pWalker, pList);
if( is_agg ){
#ifndef SQLITE_OMIT_WINDOWFUNC