aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/func.c b/src/func.c
index 900ea94c6..754ffc50e 100644
--- a/src/func.c
+++ b/src/func.c
@@ -1853,16 +1853,7 @@ static void groupConcatFinalize(sqlite3_context *context){
GroupConcatCtx *pGCC
= (GroupConcatCtx*)sqlite3_aggregate_context(context, 0);
if( pGCC ){
- StrAccum *pAccum = &pGCC->str;
- if( pAccum->accError==SQLITE_TOOBIG ){
- sqlite3_result_error_toobig(context);
- }else if( pAccum->accError==SQLITE_NOMEM ){
- sqlite3_result_error_nomem(context);
- }else{
- int n = pAccum->nChar;
- sqlite3_result_text(context, sqlite3StrAccumFinish(pAccum), n,
- sqlite3_free);
- }
+ sqlite3ResultStrAccum(context, &pGCC->str);
#ifndef SQLITE_OMIT_WINDOWFUNC
sqlite3_free(pGCC->pnSepLengths);
#endif