summaryrefslogtreecommitdiffstats
path: root/src/func.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:07:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:07:43 +0000
commit0076f49aa5ad1cb28dbce0aaf5cdb75a3dd87554 (patch)
tree578e4cc29563a2d3d6aeefe4f19ecb2eb4527206 /src/func.c
parentReleasing progress-linux version 3.46.0-1~progress7.99u1. (diff)
downloadsqlite3-0076f49aa5ad1cb28dbce0aaf5cdb75a3dd87554.tar.xz
sqlite3-0076f49aa5ad1cb28dbce0aaf5cdb75a3dd87554.zip
Merging upstream version 3.46.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c2
1 files changed, 2 insertions, 0 deletions
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);