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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user