aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-09-18 01:29:11 +0000
committerdrh <drh@noemail.net>2014-09-18 01:29:11 +0000
commit9031494af2a0ce8f9ef9b3771f0d88e30f73d20d (patch)
tree37565e82f15994e1b4ad5e8a91176af7d17a639f /src/func.c
parent7f4b19f170ff8010cd88c248aa9bf7b909d1dc75 (diff)
parent3329a63ac5ca50861d926248b159106cd9fd96a5 (diff)
downloadsqlite-9031494af2a0ce8f9ef9b3771f0d88e30f73d20d.tar.gz
sqlite-9031494af2a0ce8f9ef9b3771f0d88e30f73d20d.zip
Merge micro-optimizations into trunk after fixing the build on MSVC.
Performance now shows 7.58% faster than the 3.8.6 release on x64 with gcc 4.8.1 and -Os. FossilOrigin-Name: 1de558bcb13edc4e9a42a0b05e4b0ed6b14286a4
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/func.c b/src/func.c
index 0a8a9dda3..e1961118f 100644
--- a/src/func.c
+++ b/src/func.c
@@ -1492,6 +1492,7 @@ static void minmaxStep(
sqlite3SkipAccumulatorLoad(context);
}
}else{
+ pBest->db = sqlite3_context_db_handle(context);
sqlite3VdbeMemCopy(pBest, pArg);
}
}