1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

EXPLAIN FORMAT=JSON: Add support for single-table UPDATE/DELETE.

This commit is contained in:
Sergei Petrunia
2014-11-28 02:36:31 +03:00
parent 461dbd80d2
commit d5fbfb9a93
9 changed files with 409 additions and 197 deletions

View File

@@ -70,5 +70,15 @@ select * from t1 A, t1 B where A.a=B.a and A.b < 3 and B.b < 5;
drop table t1;
--echo #
--echo # Single-table UPDATE/DELETE
--echo #
explain format=json delete from t0;
explain format=json delete from t0 where 1 > 2;
explain format=json delete from t0 where a < 3;
explain format=json update t0 set a=3 where a in (2,3,4);
drop table t0;