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

Basic test cases.

FossilOrigin-Name: 6cccf86c362631ada0c6cbaf661520648f8bbf7ae2b137b3d7d959647387e5c2
This commit is contained in:
drh
2023-10-18 19:44:59 +00:00
parent 0021079ceb
commit 49dc1be96f
4 changed files with 50 additions and 13 deletions

View File

@@ -6723,7 +6723,11 @@ static int analyzeAggregate(Walker *pWalker, Expr *pExpr){
pItem->pFunc = sqlite3FindFunction(pParse->db,
pExpr->u.zToken, nArg, enc, 0);
assert( pItem->bOBUnique==0 );
if( pExpr->pLeft ){
if( pExpr->pLeft
&& (pItem->pFunc->funcFlags & SQLITE_FUNC_NEEDCOLL)==0
){
/* The NEEDCOLL test above causes any ORDER BY clause on
** aggregate min() or max() to be ignored. */
ExprList *pOBList;
assert( nArg>0 );
assert( pExpr->pLeft->op==TK_ORDER );