Bug #2377 | UPDATE privilege BUG | ||
---|---|---|---|
Submitted: | 13 Jan 2004 11:49 | Modified: | 3 Feb 2004 7:51 |
Reporter: | JOrdan L | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S1 (Critical) |
Version: | 4.0.16 | OS: | Linux (Linux) |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[13 Jan 2004 11:49]
JOrdan L
[13 Jan 2004 11:50]
JOrdan L
typo in title
[13 Jan 2004 12:58]
Dean Ellis
Simply put, you must have UPDATE privileges on every table in a multi-table UPDATE statement, even if you do not actually UPDATE all tables: CREATE DATABASE bt; USE bt; CREATE TABLE up1 ( a int ); CREATE TABLE up2 ( a int, b int ); INSERT INTO up1 VALUES ( 1 ); INSERT INTO up2 VALUES ( 1, 0 ); GRANT SELECT ON bt.up1 TO bugtest@localhost; GRANT SELECT, UPDATE ON bt.up2 TO bugtest@localhost; ... UPDATE up1, up2 SET up2.b = up1.a + up2.a WHERE up1.a = up2.a; ERROR 1142 (42000): update command denied to user: 'bugtest'@'localhost' for table 'up1'
[3 Feb 2004 7:51]
Michael Widenius
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: The fix will be in 4.0.18 and 4.1.2
[3 Feb 2004 10:10]
JOrdan L
i <3 you, thanks.