Bug #7014 | Views: EXPLAIN allowed without proper privileges | ||
---|---|---|---|
Submitted: | 5 Dec 2004 0:23 | Modified: | 6 May 2005 13:39 |
Reporter: | Trudy Pelzer | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.3-alpha-debug | OS: | Linux (SuSE 9.1) |
Assigned to: | Oleksandr Byelkin | CPU Architecture: | Any |
[5 Dec 2004 0:23]
Trudy Pelzer
[5 Dec 2004 14:01]
MySQL Verification Team
Verified with latest 5.0 BK tree But I didn't get any error message for the last two statements: mysql> explain select * from v1; +----+-------------+-------+--------+---------------+------+---------+------+------+---------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+--------+---------------+------+---------+------+------+---------------------+ | 1 | PRIMARY | t1 | system | NULL | NULL | NULL | NULL | 0 | const row not found | +----+-------------+-------+--------+---------------+------+---------+------+------+---------------------+ 1 row in set (0.00 sec) mysql> show create view v1; +------+-----------------------------------------------------------------------------------------------------+ | View | Create View | +------+-----------------------------------------------------------------------------------------------------+ | v1 | CREATE ALGORITHM=UNDEFINED VIEW `test`.`v1` AS select `test`.`t1`.`col1` AS `col1` from `test`.`t1` | +------+-----------------------------------------------------------------------------------------------------+ 1 row in set (0.01 sec)
[6 May 2005 13:39]
Trudy Pelzer
Victoria is unable to reproduce the results showing the correct error message responses becuase she is working with the test database and thus has all privileges. The EXPLAIN v1 and EXPLAIN v1 col1 statements do not need to fail, since they do not show any information on the table9s) that underlie the view. Thus there is no bug; this was merely a communication failure of the actual expectation.s