Bug #74738 | Multi-table DELETE rejected due to lack of SELECT privilege for no good reason | ||
---|---|---|---|
Submitted: | 7 Nov 2014 15:10 | Modified: | 7 Nov 2014 16:51 |
Reporter: | Elena Stepanova | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Security: Privileges | Severity: | S3 (Non-critical) |
Version: | 5.5, 5.6, 5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[7 Nov 2014 15:10]
Elena Stepanova
[7 Nov 2014 16:51]
MySQL Verification Team
Thank you for the bug report. Logging: mysql-test-run.pl bug74738 MySQL Version 5.7.6 Checking supported features... - SSL connections supported Collecting tests... Removing old var directory... Creating var directory 'C:/2014.11.02/mysql-trunk/mysql-test/var'... Installing system database... ============================================================================== TEST RESULT TIME (ms) or COMMENT -------------------------------------------------------------------------- worker[1] Using MTR_BUILD_THREAD 301, with reserved ports 13010..13019 CREATE DATABASE privtest_db; USE privtest_db; CREATE TABLE privtest_db.t1 (a INT, b INT); CREATE TABLE privtest_db.t2 (a INT); INSERT INTO privtest_db.t1 VALUES (1,1), (2,2), (3,3); GRANT ALL ON privtest_db.t2 TO 'privtest'@'localhost'; GRANT DELETE ON privtest_db.t1 TO 'privtest'@'localhost'; connect con1,localhost,privtest,,; USE privtest_db; DELETE t1 FROM t1, t2; ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1' connection default; GRANT SELECT(b) ON privtest_db.t1 TO 'privtest'@'localhost'; connection con1; DELETE t1 FROM t1, t2;