1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

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

- Add support for DELETE .. RETURNING statement in ANALYZE code.
This commit is contained in:
Sergei Petrunia
2014-06-26 22:03:13 +04:00
parent be885ebe8c
commit 3d7eeb6307
2 changed files with 16 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;