1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Change an assert() in the aggregate query code generator into a testcase().

FossilOrigin-Name: d1e6bc918b0c8e0701f5e15afb91b84a9004231b
This commit is contained in:
drh
2015-04-21 15:16:48 +00:00
parent 3c9a073723
commit 7c052da54d
4 changed files with 16 additions and 10 deletions

View File

@@ -4608,7 +4608,8 @@ static void updateAccumulator(Parse *pParse, AggInfo *pAggInfo){
}
if( pF->iDistinct>=0 ){
addrNext = sqlite3VdbeMakeLabel(v);
assert( nArg==1 );
testcase( nArg==0 ); /* Error condition */
testcase( nArg>1 ); /* Also an error */
codeDistinct(pParse, pF->iDistinct, addrNext, 1, regAgg);
}
if( pF->pFunc->funcFlags & SQLITE_FUNC_NEEDCOLL ){