diff options
author | drh <drh@noemail.net> | 2006-02-09 18:35:29 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2006-02-09 18:35:29 +0000 |
commit | cf85a51c2a7a89e52493efb3c0588e91771cb95e (patch) | |
tree | 8e5c1f651f5d2e1f2c389d0eefe9b548cd106221 /src/func.c | |
parent | 76c730c18fb5b8594e6161ee091cb936cf906260 (diff) | |
download | sqlite-cf85a51c2a7a89e52493efb3c0588e91771cb95e.tar.gz sqlite-cf85a51c2a7a89e52493efb3c0588e91771cb95e.zip |
Deprecate the sqlite3_aggregate_count() API. Make sure all aggregate counters
are 64 bits. Remove unused StdDev structure from func.c. Ticket #1669. (CVS 3065)
FossilOrigin-Name: 44bd7ba432123ec77904b862d11521f4ab96d2cf
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/func.c b/src/func.c index 5cd4c9ea8..3e685c6e4 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.119 2006/02/09 17:47:42 drh Exp $ +** $Id: func.c,v 1.120 2006/02/09 18:35:30 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -818,7 +818,7 @@ static void test_error( typedef struct SumCtx SumCtx; struct SumCtx { LONGDOUBLE_TYPE sum; /* Sum of terms */ - u32 cnt; /* Number of elements summed */ + i64 cnt; /* Number of elements summed */ u8 seenFloat; /* True if there has been any floating point value */ }; @@ -873,17 +873,6 @@ static void totalFinalize(sqlite3_context *context){ } /* -** An instance of the following structure holds the context of a -** variance or standard deviation computation. -*/ -typedef struct StdDevCtx StdDevCtx; -struct StdDevCtx { - double sum; /* Sum of terms */ - double sum2; /* Sum of the squares of terms */ - int cnt; /* Number of terms counted */ -}; - -/* ** The following structure keeps track of state information for the ** count() aggregate function. */ |