aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vdbeaux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index 9596e163b..21b396b36 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -368,10 +368,10 @@ int sqlite3VdbeAddFunctionCall(
pCtx->pVdbe = 0;
pCtx->isError = 0;
pCtx->argc = nArg;
+ pCtx->iOp = sqlite3VdbeCurrentAddr(v);
addr = sqlite3VdbeAddOp4(v, eCallCtx ? OP_PureFunc : OP_Function,
p1, p2, p3, (char*)pCtx, P4_FUNCCTX);
sqlite3VdbeChangeP5(v, eCallCtx & NC_SelfRef);
- pCtx->iOp = addr;
return addr;
}