Skip to content

Commit 2e4f86a

Browse files
Sergey GlukhovSergey Glukhov
Sergey Glukhov
authored and
Sergey Glukhov
committed
5.0-bugteam->5.1-bugteam automerge(bug#39541)
2 parents 6c0b87f + 90548bc commit 2e4f86a

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

mysql-test/r/mysqlcheck.result

+6
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ drop view v_bug25347;
9898
drop table t_bug25347;
9999
drop database d_bug25347;
100100
use test;
101+
create view v1 as select * from information_schema.routines;
102+
check table v1, information_schema.routines;
103+
Table Op Msg_type Msg_text
104+
test.v1 check status OK
105+
information_schema.routines check note The storage engine for the table doesn't support check
106+
drop view v1;
101107
End of 5.0 tests
102108
create table t1(a int);
103109
create view v1 as select * from t1;

mysql-test/t/mysqlcheck.test

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ drop table t_bug25347;
7171
drop database d_bug25347;
7272
use test;
7373

74+
#
75+
# Bug#39541 CHECK TABLE on information_schema myisam tables produces error
76+
#
77+
create view v1 as select * from information_schema.routines;
78+
check table v1, information_schema.routines;
79+
drop view v1;
80+
7481
--echo End of 5.0 tests
7582

7683
#

sql/sql_table.cc

+6
Original file line numberDiff line numberDiff line change
@@ -4293,6 +4293,12 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
42934293
goto send_result;
42944294
}
42954295

4296+
if (table->schema_table)
4297+
{
4298+
result_code= HA_ADMIN_NOT_IMPLEMENTED;
4299+
goto send_result;
4300+
}
4301+
42964302
if ((table->table->db_stat & HA_READ_ONLY) && open_for_modify)
42974303
{
42984304
/* purecov: begin inspected */

0 commit comments

Comments
 (0)