aboutsummaryrefslogtreecommitdiff
path: root/src/resolve.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2024-05-15 21:38:04 +0000
committerdan <Dan Kennedy>2024-05-15 21:38:04 +0000
commit1550771a6ad4b5a16ed5b2d2f3d8f6d57c0d70a7 (patch)
treed69465ed9b714e98cb866380441b10f4ffcaebb5 /src/resolve.c
parent9a1a4822e8f7d7483d71733ecf13d0d1e3e2335f (diff)
downloadsqlite-1550771a6ad4b5a16ed5b2d2f3d8f6d57c0d70a7.tar.gz
sqlite-1550771a6ad4b5a16ed5b2d2f3d8f6d57c0d70a7.zip
Fix a case where an error in the ORDER BY clause of an aggregate function that is part of a trigger body might cause an assert() to fail in an ALTER TABLE command.
FossilOrigin-Name: b79a8be37b44c1eff7d00f7af7cd9d0e13614ce5961bb88ddb9ec63f6a846c78
Diffstat (limited to 'src/resolve.c')
-rw-r--r--src/resolve.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/resolve.c b/src/resolve.c
index 898c78654..546731afe 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -1281,11 +1281,9 @@ static int resolveExprStep(Walker *pWalker, Expr *pExpr){
#endif
}
}
-#ifndef SQLITE_OMIT_WINDOWFUNC
- else if( ExprHasProperty(pExpr, EP_WinFunc) ){
+ else if( ExprHasProperty(pExpr, EP_WinFunc) || pExpr->pLeft ){
is_agg = 1;
}
-#endif
sqlite3WalkExprList(pWalker, pList);
if( is_agg ){
if( pExpr->pLeft ){