aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2022-12-03 18:16:25 +0000
committerdan <Dan Kennedy>2022-12-03 18:16:25 +0000
commitf6f01f15dd9ff495ac59f5abc3bbe15f4d8e88c8 (patch)
treea86050a52d627e409f41dc8e0dd75623a9830b67 /src/expr.c
parent231ff4b027b077ce9ac0c829cd9cee4108ca9b7a (diff)
downloadsqlite-f6f01f15dd9ff495ac59f5abc3bbe15f4d8e88c8.tar.gz
sqlite-f6f01f15dd9ff495ac59f5abc3bbe15f4d8e88c8.zip
Add CYCLES scanstat measurement to "USE TEMP B-TREE FOR ORDER BY" lines.
FossilOrigin-Name: 365011ae8b7e3fcaa2c4ea9601231a3ef2223e60d7a53ec33013109dca22ad58
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/expr.c b/src/expr.c
index 07e44a187..1528877e2 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -3258,7 +3258,7 @@ int sqlite3CodeSubselect(Parse *pParse, Expr *pExpr){
int nReg; /* Registers to allocate */
Expr *pLimit; /* New limit expression */
#ifdef SQLITE_ENABLE_STMT_SCANSTATUS
- int addrExplain;
+ int addrExplain; /* Address of OP_Explain instruction */
#endif
Vdbe *v = pParse->pVdbe;
@@ -3356,8 +3356,7 @@ int sqlite3CodeSubselect(Parse *pParse, Expr *pExpr){
if( addrOnce ){
sqlite3VdbeJumpHere(v, addrOnce);
}
- sqlite3VdbeScanStatusEnd(v, addrExplain);
-
+ sqlite3VdbeScanStatusRange(v, addrExplain, addrExplain, -1);
/* Subroutine return */
assert( ExprUseYSub(pExpr) );