aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-11-13 20:46:11 +0000
committerdrh <drh@noemail.net>2013-11-13 20:46:11 +0000
commit1f57794c923ef4daf37fdd195d415d94ad83d780 (patch)
tree38cf4b088e2917c14bb17471edd7225b2394f288 /src/shell.c
parenta98bf365fe4e73aa8d4249f39a9b0433f2605794 (diff)
parentd24474475ed7aa862f2043359728f552236d0b3c (diff)
downloadsqlite-1f57794c923ef4daf37fdd195d415d94ad83d780.tar.gz
sqlite-1f57794c923ef4daf37fdd195d415d94ad83d780.zip
Merge the skip-scan enhancement into trunk.
FossilOrigin-Name: b0bb975c0986fe01f1184c1d4888fe397174ad0f
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/shell.c b/src/shell.c
index 676175081..61df7d6d5 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1173,9 +1173,10 @@ static int str_in_array(const char *zStr, const char **azArray){
** all opcodes that occur between the p2 jump destination and the opcode
** itself by 2 spaces.
**
-** * For each "Goto", if the jump destination is a "Yield" instruction
-** that occurs earlier in the program than the Goto itself, indent
-** all opcodes between the "Yield" and "Goto" by 2 spaces.
+** * For each "Goto", if the jump destination is a "Yield", "SeekGt",
+** or "SeekLt" instruction that occurs earlier in the program than
+** the Goto itself, indent all opcodes between the earlier instruction
+** and "Goto" by 2 spaces.
*/
static void explain_data_prepare(struct callback_data *p, sqlite3_stmt *pSql){
const char *zSql; /* The text of the SQL statement */
@@ -1185,7 +1186,7 @@ static void explain_data_prepare(struct callback_data *p, sqlite3_stmt *pSql){
int iOp;
const char *azNext[] = { "Next", "Prev", "VPrev", "VNext", 0 };
- const char *azYield[] = { "Yield", 0 };
+ const char *azYield[] = { "Yield", "SeekLt", "SeekGt", 0 };
const char *azGoto[] = { "Goto", 0 };
/* Try to figure out if this is really an EXPLAIN statement. If this