Bug #59957 | View using merge permissions in multi-table update | ||
---|---|---|---|
Submitted: | 4 Feb 2011 23:32 | Modified: | 30 Sep 2011 18:30 |
Reporter: | Gillian Gunson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Security: Privileges | Severity: | S3 (Non-critical) |
Version: | 5.0, 5.1, 5.5 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[4 Feb 2011 23:32]
Gillian Gunson
[5 Feb 2011 0:18]
Gillian Gunson
Possible workarounds: 1. Add UPDATE privilege to user for the view: GRANT UPDATE on db1.v1_MERGE to user2; 2. Recreate view in DB where the user has UPDATE privileges: USE db2; CREATE ALGORITHM=MERGE VIEW v1_MERGE AS SELECT * FROM db1.t1; 3. Rewrite view as TEMPTABLE: USE db1; CREATE ALGORITHM=TEMPTABLE VIEW v1_TEMP AS SELECT * FROM t1;
[30 Sep 2011 18:30]
Paul DuBois
Noted in 5.6.4 changelog. A multiple-table UPDATE statement required the UPDATE privilege on a view which was only read if the view was processed using the merge algorithm.