aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-08-21 21:12:10 +0000
committerdrh <drh@noemail.net>2013-08-21 21:12:10 +0000
commitb49bc86a1a6134806dde81bb788fcf4a9fa8d7a9 (patch)
tree3f3c297c7f198df139beeb85c13a792805be3e52 /src/func.c
parentc63e880bdbf9c1a775feedae161ddbdc64e4de34 (diff)
downloadsqlite-b49bc86a1a6134806dde81bb788fcf4a9fa8d7a9.tar.gz
sqlite-b49bc86a1a6134806dde81bb788fcf4a9fa8d7a9.zip
Simplification to the StrAccum object and the sqlite3StrAccumAppend()
method that also results in slightly better performance. FossilOrigin-Name: 700dbbea8647e0fdaee6d0aba3d3dd8ebfbac04a
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c
index 49f6c892b..be6e23867 100644
--- a/src/func.c
+++ b/src/func.c
@@ -1522,9 +1522,9 @@ static void groupConcatFinalize(sqlite3_context *context){
StrAccum *pAccum;
pAccum = sqlite3_aggregate_context(context, 0);
if( pAccum ){
- if( pAccum->tooBig ){
+ if( pAccum->accError==STRACCUM_TOOBIG ){
sqlite3_result_error_toobig(context);
- }else if( pAccum->mallocFailed ){
+ }else if( pAccum->accError==STRACCUM_NOMEM ){
sqlite3_result_error_nomem(context);
}else{
sqlite3_result_text(context, sqlite3StrAccumFinish(pAccum), -1,