1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

EXPLAIN FORMAT=JSON: support EXPLAIN FORMAT=JSON INSERT ...

This commit is contained in:
Sergei Petrunia
2014-11-29 03:28:46 +03:00
parent e235bb864d
commit c46eadb2b3
4 changed files with 60 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ select * from t1 tbl1, t1 tbl2 where tbl1.a=tbl2.a and tbl1.b < 3 and tbl2.b < 5
drop table t1;
--echo #
--echo # Single-table UPDATE/DELETE
--echo # Single-table UPDATE/DELETE, INSERT
--echo #
explain format=json delete from t0;
explain format=json delete from t0 where 1 > 2;
@@ -80,6 +80,13 @@ explain format=json delete from t0 where a < 3;
explain format=json update t0 set a=3 where a in (2,3,4);
explain format=json insert into t0 values (1);
create table t1 like t0;
explain format=json insert into t1 values ((select max(a) from t0));
drop table t1;
--echo #
--echo # A derived table
--echo #