diff options
author | bell@sanja.is.com.ua <> | 2005-04-02 18:05:00 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2005-04-02 18:05:00 +0300 |
commit | 3061a749e68b16e9aaeb788b25dafe40e5370492 (patch) | |
tree | 1de8cb3720528f361870231fb45b2436876b053c /mysql-test/t/view.test | |
parent | 2292480e795a02973b828a37f826c6e4e0192b69 (diff) | |
download | mariadb-git-3061a749e68b16e9aaeb788b25dafe40e5370492.tar.gz |
fix of required privileges for altering view VIEW (DELETE->DROP) (BUG#9260)
Diffstat (limited to 'mysql-test/t/view.test')
-rw-r--r-- | mysql-test/t/view.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test index 7a05ebb0204..69634b2098b 100644 --- a/mysql-test/t/view.test +++ b/mysql-test/t/view.test @@ -181,7 +181,7 @@ connect (user1,localhost,mysqltest_1,,test); connection user1; create view v1 as select * from mysqltest.t1; -# try to modify view without DELETE privilege on it +# try to modify view without DROP privilege on it -- error 1142 alter view v1 as select * from mysqltest.t1; -- error 1142 @@ -194,6 +194,16 @@ create view mysqltest.v2 as select * from mysqltest.t1; create view v2 as select * from mysqltest.t2; connection root; +grant create view,drop,select on test.* to mysqltest_1@localhost; + +connection user1; +# following 'use' command is workaround of bug #9582 and should be removed +# when that bug will be fixed +use test; +alter view v1 as select * from mysqltest.t1; +create or replace view v1 as select * from mysqltest.t1; + +connection root; revoke all privileges on mysqltest.t1 from mysqltest_1@localhost; revoke all privileges on test.* from mysqltest_1@localhost; |