aboutsummaryrefslogtreecommitdiff
path: root/test/with1.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/with1.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/with1.test')
-rw-r--r--test/with1.test12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/with1.test b/test/with1.test
index 92fbc58fc..f1a062504 100644
--- a/test/with1.test
+++ b/test/with1.test
@@ -992,16 +992,22 @@ do_execsql_test 18.2 {
# EXPLAIN QUERY PLAN on a self-join of a CTE
#
-do_execsql_test 19.1 {
+do_execsql_test 19.1a {
DROP TABLE IF EXISTS t1;
CREATE TABLE t1(x);
- EXPLAIN QUERY PLAN
+}
+do_eqp_test 19.1b {
WITH
x1(a) AS (values(100))
INSERT INTO t1(x)
SELECT * FROM (WITH x2(y) AS (SELECT * FROM x1) SELECT y+a FROM x1, x2);
SELECT * FROM t1;
-} {0 0 0 {SCAN SUBQUERY 1} 0 1 1 {SCAN SUBQUERY 1}}
+} {
+ QUERY PLAN
+ |--MATERIALIZE xxxxxx
+ |--SCAN SUBQUERY xxxxxx
+ `--SCAN SUBQUERY xxxxxx
+}
# 2017-10-28.
# See check-in https://sqlite.org/src/info/0926df095faf72c2