From 0076f49aa5ad1cb28dbce0aaf5cdb75a3dd87554 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:07:43 +0200 Subject: Merging upstream version 3.46.1. Signed-off-by: Daniel Baumann --- src/func.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/func.c') diff --git a/src/func.c b/src/func.c index 1800498..058f71c 100644 --- a/src/func.c +++ b/src/func.c @@ -2206,6 +2206,8 @@ static void groupConcatValue(sqlite3_context *context){ sqlite3_result_error_toobig(context); }else if( pAccum->accError==SQLITE_NOMEM ){ sqlite3_result_error_nomem(context); + }else if( pGCC->nAccum>0 && pAccum->nChar==0 ){ + sqlite3_result_text(context, "", 1, SQLITE_STATIC); }else{ const char *zText = sqlite3_str_value(pAccum); sqlite3_result_text(context, zText, pAccum->nChar, SQLITE_TRANSIENT); -- cgit v1.2.3