From 3061a749e68b16e9aaeb788b25dafe40e5370492 Mon Sep 17 00:00:00 2001 From: "bell@sanja.is.com.ua" <> Date: Sat, 2 Apr 2005 18:05:00 +0300 Subject: fix of required privileges for altering view VIEW (DELETE->DROP) (BUG#9260) --- mysql-test/t/view.test | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'mysql-test/t/view.test') 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 @@ -193,6 +193,16 @@ create view mysqltest.v2 as select * from mysqltest.t1; -- error 1142 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; -- cgit v1.2.1