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

Revise tests cases to align with the new EXPLAIN QUERY PLAN output.

FossilOrigin-Name: 50fbd532602d2c316813046ed6be8be2991c281eb5f295c4c28520a0de73862c
This commit is contained in:
drh
2021-03-20 15:11:29 +00:00
parent 6610e6a54f
commit 8210233c7b
110 changed files with 1066 additions and 1070 deletions

View File

@ -40,27 +40,27 @@ foreach idxmode {ordered unordered} {
sqlite3 db test.db
foreach {tn sql r(ordered) r(unordered)} {
1 "SELECT * FROM t1 ORDER BY a"
{SCAN TABLE t1 USING INDEX i1}
{SCAN TABLE t1*USE TEMP B-TREE FOR ORDER BY}
{SCAN t1 USING INDEX i1}
{SCAN t1*USE TEMP B-TREE FOR ORDER BY}
2 "SELECT * FROM t1 WHERE a > 100"
{SEARCH TABLE t1 USING INDEX i1 (a>?)}
{SCAN TABLE t1}
{SEARCH t1 USING INDEX i1 (a>?)}
{SCAN t1}
3 "SELECT * FROM t1 WHERE a = ? ORDER BY rowid"
{SEARCH TABLE t1 USING INDEX i1 (a=?)}
{SEARCH TABLE t1 USING INDEX i1 (a=?)*USE TEMP B-TREE FOR ORDER BY}
{SEARCH t1 USING INDEX i1 (a=?)}
{SEARCH t1 USING INDEX i1 (a=?)*USE TEMP B-TREE FOR ORDER BY}
4 "SELECT max(a) FROM t1"
{SEARCH TABLE t1 USING COVERING INDEX i1}
{SEARCH TABLE t1}
{SEARCH t1 USING COVERING INDEX i1}
{SEARCH t1}
5 "SELECT group_concat(b) FROM t1 GROUP BY a"
{SCAN TABLE t1 USING INDEX i1}
{SCAN TABLE t1*USE TEMP B-TREE FOR GROUP BY}
{SCAN t1 USING INDEX i1}
{SCAN t1*USE TEMP B-TREE FOR GROUP BY}
6 "SELECT * FROM t1 WHERE a = ?"
{SEARCH TABLE t1 USING INDEX i1 (a=?)}
{SEARCH TABLE t1 USING INDEX i1 (a=?)}
{SEARCH t1 USING INDEX i1 (a=?)}
{SEARCH t1 USING INDEX i1 (a=?)}
7 "SELECT count(*) FROM t1"
{SCAN TABLE t1 USING COVERING INDEX i1}
{SCAN TABLE t1}
{SCAN t1 USING COVERING INDEX i1}
{SCAN t1}
} {
do_eqp_test 1.$idxmode.$tn $sql $r($idxmode)
}