mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Enhance the EXPLAIN output formatting in the CLI so that the subroutine that
implements the loop body for the multi-index OR optimization is indented. FossilOrigin-Name: c2965fea9df7076b235d3eadaf84f0a36242476d0329030b0e57557b66e2540c
This commit is contained in:
@@ -2534,6 +2534,14 @@ Bitmask sqlite3WhereCodeOneLoopStart(
|
||||
sqlite3VdbeGoto(v, pLevel->addrBrk);
|
||||
sqlite3VdbeResolveLabel(v, iLoopBody);
|
||||
|
||||
/* Set the P2 operand of the OP_Return opcode that will end the current
|
||||
** loop to point to this spot, which is the top of the next containing
|
||||
** loop. The byte-code formatter will use that P2 value as a hint to
|
||||
** indent everything in between the this point and the final OP_Return.
|
||||
** See tag-20220407a in vdbe.c and shell.c */
|
||||
assert( pLevel->op==OP_Return );
|
||||
pLevel->p2 = sqlite3VdbeCurrentAddr(v);
|
||||
|
||||
if( pWInfo->nLevel>1 ){ sqlite3StackFree(db, pOrTab); }
|
||||
if( !untestedTerms ) disableTerm(pLevel, pTerm);
|
||||
}else
|
||||
|
||||
Reference in New Issue
Block a user