Commit edf34f38 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

MDEV-7024: Assertion `! is_set()' failed in Diagnostics_area::set_eof_status...

MDEV-7024: Assertion `! is_set()' failed in Diagnostics_area::set_eof_status on executing ANALYZE SELECT via PS

select_send::is_result_interceptor() should return FALSE because it return results to the client.
parent 51feb6fa
...@@ -293,3 +293,13 @@ analyze select * into outfile '../../tmp/data1.tmp' from t1; ...@@ -293,3 +293,13 @@ analyze select * into outfile '../../tmp/data1.tmp' from t1;
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra 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 4 4 100.00 100.00 1 SIMPLE t1 ALL NULL NULL NULL NULL 4 4 100.00 100.00
drop table t1; drop table t1;
#
# MDEV-7024: Assertion `! is_set()' failed in
# Diagnostics_area::set_eof_status on executing ANALYZE SELECT via PS
#
create table t1(a int);
prepare stmt from "analyze select * from t1";
execute stmt;
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
drop table t1;
...@@ -233,3 +233,14 @@ analyze select * into outfile '../../tmp/data1.tmp' from t1; ...@@ -233,3 +233,14 @@ analyze select * into outfile '../../tmp/data1.tmp' from t1;
--remove_file $MYSQLTEST_VARDIR/tmp/data1.tmp --remove_file $MYSQLTEST_VARDIR/tmp/data1.tmp
drop table t1; drop table t1;
--echo #
--echo # MDEV-7024: Assertion `! is_set()' failed in
--echo # Diagnostics_area::set_eof_status on executing ANALYZE SELECT via PS
--echo #
create table t1(a int);
prepare stmt from "analyze select * from t1";
execute stmt;
drop table t1;
...@@ -4108,7 +4108,7 @@ public: ...@@ -4108,7 +4108,7 @@ public:
virtual bool check_simple_select() const { return FALSE; } virtual bool check_simple_select() const { return FALSE; }
void abort_result_set(); void abort_result_set();
virtual void cleanup(); virtual void cleanup();
bool is_result_interceptor() { return true; } bool is_result_interceptor() { return false; }
}; };
......
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