| Bug #71750 | Make DROP TABLE report the table is a view if user has rights to view | ||
|---|---|---|---|
| Submitted: | 17 Feb 2014 12:11 | Modified: | 17 Jun 2014 12:24 |
| Reporter: | Simon Mudd (OCA) | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: DDL | Severity: | S4 (Feature request) |
| Version: | 5.6.14 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | drop table, Views | ||
[17 Feb 2014 12:11]
Simon Mudd
[17 Jun 2014 12:24]
MySQL Verification Team
Hello Simon, Thank you for the feature request! Thanks, Umesh
[17 Jun 2014 12:25]
MySQL Verification Team
// 5.6.17/19 and 5.7.5 mysql> create table t1(id int not null auto_increment primary key)engine=innodb; Query OK, 0 rows affected (0.05 sec) mysql> insert into t1 values(); Query OK, 1 row affected (0.00 sec) mysql> insert into t1 values(); Query OK, 1 row affected (0.00 sec) mysql> select * from t1; +----+ | id | +----+ | 1 | | 2 | +----+ 2 rows in set (0.00 sec) mysql> create view t2 as select * from t1; Query OK, 0 rows affected (0.01 sec) mysql> show tables; +----------------+ | Tables_in_test | +----------------+ | docnode_tree | | t1 | | t2 | +----------------+ 3 rows in set (0.00 sec) mysql> drop table if exists t2; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> show warnings; +-------+------+-------------------------+ | Level | Code | Message | +-------+------+-------------------------+ | Note | 1051 | Unknown table 'test.t2' | +-------+------+-------------------------+ 1 row in set (0.00 sec) mysql> show tables; +----------------+ | Tables_in_test | +----------------+ | docnode_tree | | t1 | | t2 | +----------------+ 3 rows in set (0.00 sec)
