diff options
author | drh <> | 2023-07-24 12:59:53 +0000 |
---|---|---|
committer | drh <> | 2023-07-24 12:59:53 +0000 |
commit | 5202b7ca75c02c59f7f74cb59598416ac107a93d (patch) | |
tree | 1034d78d2279bffbb087fec8be52b649fc24b898 /src/func.c | |
parent | 66422b57f9892262c0d5638a0c5d165658fcee43 (diff) | |
parent | 479cfd5af3d46e70468eda8e31c4d033955bdd29 (diff) | |
download | sqlite-5202b7ca75c02c59f7f74cb59598416ac107a93d.tar.gz sqlite-5202b7ca75c02c59f7f74cb59598416ac107a93d.zip |
Update the latest trunk enhancements into the wal-shm-exceptions branch.
FossilOrigin-Name: 3187ee3f69fc28a259ba0e951ac10a65c07ef2c3866acbefaf9544333a930cc6
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c index 542d71a23..ef06a79fb 100644 --- a/src/func.c +++ b/src/func.c @@ -1227,6 +1227,7 @@ static void charFunc( *zOut++ = 0x80 + (u8)(c & 0x3F); } \ } + *zOut = 0; sqlite3_result_text64(context, (char*)z, zOut-z, sqlite3_free, SQLITE_UTF8); } @@ -1764,11 +1765,10 @@ static void sumStep(sqlite3_context *context, int argc, sqlite3_value **argv){ p->ovrfl = 1; kahanBabuskaNeumaierInit(p, p->iSum); p->approx = 1; - kahanBabuskaNeumaierStep(p, sqlite3_value_double(argv[0])); + kahanBabuskaNeumaierStepInt64(p, sqlite3_value_int64(argv[0])); } } }else{ - p->approx = 1; if( type==SQLITE_INTEGER ){ kahanBabuskaNeumaierStepInt64(p, sqlite3_value_int64(argv[0])); }else{ |