diff options
author | monty@mashka.mysql.fi <> | 2003-05-07 23:59:24 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-05-07 23:59:24 +0300 |
commit | 71ce598fa21e2e8ee3abf156af2cd95821f3d282 (patch) | |
tree | daddc57eeedc8a9ecec290538f8ecd00e81c06bb /tests/grant.res | |
parent | 0db0fe9a894038d5ff51c3b7fb5b3ead2d973154 (diff) | |
download | mariadb-git-71ce598fa21e2e8ee3abf156af2cd95821f3d282.tar.gz |
Security patch to remove wrong error when one had a global update/delete privilige and a database specific SELECT privilege.
Diffstat (limited to 'tests/grant.res')
-rw-r--r-- | tests/grant.res | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/grant.res b/tests/grant.res index 44e20db555f..086111ce567 100644 --- a/tests/grant.res +++ b/tests/grant.res @@ -195,8 +195,23 @@ Error in execute: select command denied to user: 'grant_user@localhost' for colu grant SELECT on *.* to grant_user@localhost Connecting grant_user update grant_test.test set b=b+1 +update grant_test.test set b=b+1 where a > 0 revoke SELECT on *.* from grant_user@localhost +grant SELECT on grant_test.* to grant_user@localhost Connecting grant_user +update grant_test.test set b=b+1 +update grant_test.test set b=b+1 where a > 0 +grant UPDATE on *.* to grant_user@localhost +Connecting grant_user +update grant_test.test set b=b+1 +update grant_test.test set b=b+1 where a > 0 +revoke UPDATE on *.* from grant_user@localhost +revoke SELECT on grant_test.* from grant_user@localhost +Connecting grant_user +update grant_test.test set b=b+1 where a > 0 +Error in execute: select command denied to user: 'grant_user@localhost' for column 'a' in table 'test' +update grant_test.test set b=b+1 +Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test' select * from test Error in execute: select command denied to user: 'grant_user@localhost' for table 'test' grant select on grant_test.test to grant_user@localhost |