summaryrefslogtreecommitdiff
path: root/mysql-test/t/grant.test
diff options
context:
space:
mode:
authorunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-04-24 11:28:18 +0500
committerunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-04-24 11:28:18 +0500
commit3af43cecb2aa809d12aa4cb624210d5aec87b407 (patch)
tree7f3cf57181679d00d7c5072370e8659100646daf /mysql-test/t/grant.test
parente208964bc83e68330e9cae54de56f3b26d24980a (diff)
parent3aea34b4528f0089348b2b9f17c6cf2bef512df8 (diff)
downloadmariadb-git-3af43cecb2aa809d12aa4cb624210d5aec87b407.tar.gz
Merge mysql.com:/home/ram/work/b27515/b27515.5.0
into mysql.com:/home/ram/work/b27515/b27515.5.1 mysql-test/t/grant.test: Auto merged sql/sql_parse.cc: Auto merged mysql-test/r/grant.result: will be merged in a post-merge CS
Diffstat (limited to 'mysql-test/t/grant.test')
-rw-r--r--mysql-test/t/grant.test23
1 files changed, 22 insertions, 1 deletions
diff --git a/mysql-test/t/grant.test b/mysql-test/t/grant.test
index cf4e2d0151e..5d60ec96709 100644
--- a/mysql-test/t/grant.test
+++ b/mysql-test/t/grant.test
@@ -542,7 +542,28 @@ delete from mysql.tables_priv where user='mysqltest1';
flush privileges;
drop database mysqltest;
-# End of 4.1 tests
+#
+# Bug #27515: DROP previlege is not required for RENAME TABLE
+#
+connection master;
+create database db27515;
+use db27515;
+create table t1 (a int);
+grant alter on db27515.t1 to user27515@localhost;
+grant insert, create on db27515.t2 to user27515@localhost;
+
+connect (conn27515, localhost, user27515, , db27515);
+connection conn27515;
+--error 1142
+rename table t1 to t2;
+disconnect conn27515;
+
+connection master;
+revoke all privileges, grant option from user27515@localhost;
+drop user user27515@localhost;
+drop database db27515;
+
+--echo End of 4.1 tests
#
# Bug #16297 In memory grant tables not flushed when users's hostname is ""