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;
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.