diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2014-12-06 03:11:03 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2014-12-06 03:11:03 +0300 |
commit | 5ee1c25fa8043f81ad744d1c532b8c1dafa3b5ea (patch) | |
tree | ed59f9c4886c2a812e0a954053d1375aad5f63c0 /mysql-test/t/explain_json.test | |
parent | a80a797686e72644e0ad479fdfd2a3b56c4ddf05 (diff) | |
download | mariadb-git-5ee1c25fa8043f81ad744d1c532b8c1dafa3b5ea.tar.gz |
EXPLAIN FORMAT=JSON: Full scan on NULL key (join case)
Diffstat (limited to 'mysql-test/t/explain_json.test')
-rw-r--r-- | mysql-test/t/explain_json.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/explain_json.test b/mysql-test/t/explain_json.test index 0ecc09691e0..476cb0d3df6 100644 --- a/mysql-test/t/explain_json.test +++ b/mysql-test/t/explain_json.test @@ -153,3 +153,17 @@ select * from t1 tbl1, t1 tbl2 where tbl2.a < tbl1.b; drop table t1; drop table t0; +--echo # +--echo # MDEV-7265: "Full scan on NULL key", the join case +--echo # + +CREATE TABLE t1 (a INT, KEY(a)); +INSERT INTO t1 VALUES (1),(2); + +CREATE TABLE t2 (b INT); +INSERT INTO t2 VALUES (3),(4); + +EXPLAIN FORMAT=JSON SELECT * FROM t1 AS outer_t1 WHERE a <> ALL ( SELECT a FROM t1, t2 WHERE b <> outer_t1.a ); + +DROP TABLE t1,t2; + |