Commit 3d7eeb63 authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-6394: ANALYZE DELETE .. RETURNING fails with ERROR 2027 Malformed packet

- Add support for DELETE .. RETURNING statement in ANALYZE code.
parent be885ebe
......@@ -251,3 +251,11 @@ analyze select * from t1 into @var;
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
1 SIMPLE t1 system NULL NULL NULL NULL 1 NULL 100.00 NULL
drop table t1;
#
# MDEV-6394: ANALYZE DELETE .. RETURNING fails with ERROR 2027 Malformed packet
#
create table t1 (i int);
analyze delete from t1 returning *;
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 0 0 100.00 100.00
drop table t1;
......@@ -198,3 +198,11 @@ create table t1 (i int);
insert into t1 values (1);
analyze select * from t1 into @var;
drop table t1;
--echo #
--echo # MDEV-6394: ANALYZE DELETE .. RETURNING fails with ERROR 2027 Malformed packet
--echo #
create table t1 (i int);
analyze delete from t1 returning *;
drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment