aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <dan@noemail.net>2019-07-22 11:38:43 +0000
committerdan <dan@noemail.net>2019-07-22 11:38:43 +0000
commit1e60261cfbc34cdad2625241ba6e5bedfb2e6716 (patch)
treec2733ab5c7af18deb6a237c89266de49acd34dc3 /src
parent7fc296aa662e02fc715facf50b6fb095794d7641 (diff)
downloadsqlite-1e60261cfbc34cdad2625241ba6e5bedfb2e6716.tar.gz
sqlite-1e60261cfbc34cdad2625241ba6e5bedfb2e6716.zip
Fix a problem with renaming tables when the schema contains an invocation of a currently unregistered aggregate with a FILTER clause.
FossilOrigin-Name: bd37ce3fb8dee8d538f6afc0bfc13cdc3ebdd504e6461f0130c6ecc8af585f68
Diffstat (limited to 'src')
-rw-r--r--src/resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c
index 87020486e..be6430deb 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -892,7 +892,7 @@ static int resolveExprStep(Walker *pWalker, Expr *pExpr){
}
}
#ifndef SQLITE_OMIT_WINDOWFUNC
- else if( pWin ){
+ else if( ExprHasProperty(pExpr, EP_WinFunc) ){
is_agg = 1;
}
#endif