aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2023-12-14 13:58:50 +0000
committerdrh <>2023-12-14 13:58:50 +0000
commit07117f8118f0f7858126c36ee4d202196f541330 (patch)
tree259e34c802201d16ca3a4ce648325235048dc9a1 /src/expr.c
parent3e4195c60db744c69bb24e71236631a80f2ef547 (diff)
downloadsqlite-07117f8118f0f7858126c36ee4d202196f541330.tar.gz
sqlite-07117f8118f0f7858126c36ee4d202196f541330.zip
Pass subtype information through the aggregate ORDER BY sorter for
aggregate functions that use subtype information. FossilOrigin-Name: 3536f4030eab6d650b7ed729d2f71eb6cc3b5fbe16b4e96b99008d66522aaccb
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c
index b5e903d45..756fcc569 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -6821,6 +6821,8 @@ static int analyzeAggregate(Walker *pWalker, Expr *pExpr){
}else{
pItem->bOBPayload = 1;
}
+ pItem->bUseSubtype =
+ (pItem->pFunc->funcFlags & SQLITE_SUBTYPE)!=0;
}else{
pItem->iOBTab = -1;
}