1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Update test command [explain_i] to handle the opcodes used by virtual tables (VNext, VFilter etc.).

FossilOrigin-Name: 1b215ee3219750d3beda8f3628c8673efd517061
This commit is contained in:
dan
2013-11-12 12:30:09 +00:00
parent ff4b23ba9e
commit e3ab729a9c
3 changed files with 11 additions and 9 deletions

View File

@ -1041,7 +1041,7 @@ proc explain_i {sql {db db}} {
set D "\033\[39;0m" ;# Default fg
foreach opcode {
Seek SeekGe SeekGt SeekLe SeekLt NotFound Last Rewind
NoConflict Next Prev
NoConflict Next Prev VNext VPrev VFilter
} {
set color($opcode) $B
}
@ -1062,7 +1062,9 @@ proc explain_i {sql {db db}} {
set bSeenGoto 1
}
if {$opcode == "Next" || $opcode=="Prev"} {
if {$opcode=="Next" || $opcode=="Prev"
|| $opcode=="VNext" || $opcode=="VPrev"
} {
for {set i $p2} {$i<$addr} {incr i} {
incr x($i) 2
}