aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <>2024-05-31 14:39:42 +0000
committerdrh <>2024-05-31 14:39:42 +0000
commitd72ca8f810a0159d87cc16321a8d974373eceab3 (patch)
tree1745492a16ff3feb3df2b907e9f3bfee292e9d90 /src/wherecode.c
parent2f755cdc3ac105837b9cd0aecf35275b83c56b07 (diff)
downloadsqlite-d72ca8f810a0159d87cc16321a8d974373eceab3.tar.gz
sqlite-d72ca8f810a0159d87cc16321a8d974373eceab3.zip
Document the OP_Explain opcode. Add the WhereLoop.rRun value as P3 in
OP_Explain opcodes associated with WhereLoops, for testing purposes. FossilOrigin-Name: 996c46e61d9a53a54018672dd407b8ba8c480dd6795393428f9d5fcb81b47ab5
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 30624be8a..80fbbfac4 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -218,7 +218,8 @@ int sqlite3WhereExplainOneScan(
zMsg = sqlite3StrAccumFinish(&str);
sqlite3ExplainBreakpoint("",zMsg);
ret = sqlite3VdbeAddOp4(v, OP_Explain, sqlite3VdbeCurrentAddr(v),
- pParse->addrExplain, 0, zMsg,P4_DYNAMIC);
+ pParse->addrExplain, pLoop->rRun,
+ zMsg, P4_DYNAMIC);
}
return ret;
}