aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-04-20 12:07:37 +0000
committerdrh <drh@noemail.net>2009-04-20 12:07:37 +0000
commitd54a79118a20fba5d072d0b16e461bd8974a37b0 (patch)
treebede17ee78e6606f06eabc280adce2605c6a3dd0 /src
parent59813953a3179be26fb9a074f4e277fa46deeb91 (diff)
downloadsqlite-d54a79118a20fba5d072d0b16e461bd8974a37b0.tar.gz
sqlite-d54a79118a20fba5d072d0b16e461bd8974a37b0.zip
Do not use deprecated interfaces internally when compiling with
SQLITE_OMIT_DEPRECATED. Ticket #3813. (CVS 6523) FossilOrigin-Name: 7f17956dfbf3090fd5832378e77bd83a525fed9d
Diffstat (limited to 'src')
-rw-r--r--src/func.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c
index 6d7baba41..b7df8178f 100644
--- a/src/func.c
+++ b/src/func.c
@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
-** $Id: func.c,v 1.233 2009/04/15 15:16:53 drh Exp $
+** $Id: func.c,v 1.234 2009/04/20 12:07:37 drh Exp $
*/
#include "sqliteInt.h"
#include <stdlib.h>
@@ -1260,9 +1260,15 @@ static void groupConcatStep(
if( pAccum ){
sqlite3 *db = sqlite3_context_db_handle(context);
+ int n;
pAccum->useMalloc = 1;
pAccum->mxAlloc = db->aLimit[SQLITE_LIMIT_LENGTH];
- if( sqlite3_aggregate_count(context)>1 ){
+#ifdef SQLITE_OMIT_DEPRECATED
+ n = context->pMem->n;
+#else
+ n = sqlite3_aggregate_count(context);
+#endif
+ if( n>1 ){
if( argc==2 ){
zSep = (char*)sqlite3_value_text(argv[1]);
nSep = sqlite3_value_bytes(argv[1]);