aboutsummaryrefslogtreecommitdiff
path: root/test/scanstatus.test
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-05-02 18:00:17 +0000
committerdrh <drh@noemail.net>2018-05-02 18:00:17 +0000
commitb3f0276b9e4fd6465aaefa6e527d3f7a19a59b8c (patch)
treec9f50dc49d86bbddef84d7e52539152f908e1b4c /test/scanstatus.test
parent84a01debf9cd527e422d4bc3cbd0149b8a3b9e34 (diff)
downloadsqlite-b3f0276b9e4fd6465aaefa6e527d3f7a19a59b8c.tar.gz
sqlite-b3f0276b9e4fd6465aaefa6e527d3f7a19a59b8c.zip
Fix test cases so that they work with the new EXPLAIN QUERY PLAN output
format. Only some of the cases have been fixed. This is an incremental check-in. FossilOrigin-Name: 5f0e803e33aa557865d5fc830d9202d628de9a94c9757058ca48f1a560702cd3
Diffstat (limited to 'test/scanstatus.test')
-rw-r--r--test/scanstatus.test12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/scanstatus.test b/test/scanstatus.test
index fdd6476ae..778a0c911 100644
--- a/test/scanstatus.test
+++ b/test/scanstatus.test
@@ -328,7 +328,7 @@ do_scanstatus_test 5.2.2 {
do_eqp_test 5.3.1 {
SELECT count(*) FROM t2 WHERE y = 'j';
-} {0 0 0 {SEARCH TABLE t2 USING COVERING INDEX t2xy (ANY(x) AND y=?)}}
+} {SEARCH TABLE t2 USING COVERING INDEX t2xy (ANY(x) AND y=?)}
do_execsql_test 5.3.2 {
SELECT count(*) FROM t2 WHERE y = 'j';
} {19}
@@ -340,8 +340,9 @@ do_scanstatus_test 5.3.3 {
do_eqp_test 5.4.1 {
SELECT count(*) FROM t1, t2 WHERE y = c;
} {
- 0 0 0 {SCAN TABLE t1 USING COVERING INDEX t1bc}
- 0 1 1 {SEARCH TABLE t2 USING COVERING INDEX t2xy (ANY(x) AND y=?)}
+ QUERY PLAN
+ |--SCAN TABLE t1 USING COVERING INDEX t1bc
+ `--SEARCH TABLE t2 USING COVERING INDEX t2xy (ANY(x) AND y=?)
}
do_execsql_test 5.4.2 {
SELECT count(*) FROM t1, t2 WHERE y = c;
@@ -356,8 +357,9 @@ do_scanstatus_test 5.4.3 {
do_eqp_test 5.5.1 {
SELECT count(*) FROM t1, t3 WHERE y = c;
} {
- 0 0 1 {SCAN TABLE t3}
- 0 1 0 {SEARCH TABLE t1 USING AUTOMATIC COVERING INDEX (c=?)}
+ QUERY PLAN
+ |--SCAN TABLE t3
+ `--SEARCH TABLE t1 USING AUTOMATIC COVERING INDEX (c=?)
}
do_execsql_test 5.5.2 {
SELECT count(*) FROM t1, t3 WHERE y = c;