aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
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);
}
}