Bug #236 | Multi-table update denied to user who has all privleges | ||
---|---|---|---|
Submitted: | 6 Apr 2003 13:56 | Modified: | 15 May 2003 7:59 |
Reporter: | Jesse Bangs | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0.11-gamma-max | OS: | FreeBSD (FreeBSD 4.7-RELEASE) |
Assigned to: | Michael Widenius | CPU Architecture: | Any |
[6 Apr 2003 13:56]
Jesse Bangs
[7 Apr 2003 5:11]
MySQL Verification Team
As our documentation clearly depicts, when UPDATE command is specified as in example, UPDATE and SELECT privileges are required for both tables. I just tried it with 4.0.12 and it works.
[7 Apr 2003 8:30]
Jesse Bangs
> As our documentation clearly depicts, when UPDATE command > is specified as in example, UPDATE and SELECT privileges > are required for both tables. And as I clearly stated, I *have* UPDATE and SELECT privileges for both tables, unless "GRANT ALL PRIVILEGES ON db.* TO user" doesn't give them to me. Or my sysadmin is lying and didn't actually give me all privileges.
[15 May 2003 7:59]
Michael Widenius
The previous comment was not correct as the user had update and select privilege on the column. We did however just fix a privilege related bug in 4.0.12, which will be in 4.0.13. Could you please try if this version fixes your problem. If not, please reopen this bug again and provide us with an 'copy and past example' that doesn't work. Here is what I tested, which worked in 4.0.13 without any problems: As root: create database new; grant all privileges on new.* to test_user; as test_user: create table t1 (a int, b int); create table t2 (a int, b int); update t1,t2 set t1.b=t2.b where t1.a=t2.a;