summaryrefslogtreecommitdiff
path: root/mysql-test/t/grant.test
diff options
context:
space:
mode:
authorramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-04-24 14:08:03 +0500
committerramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-04-24 14:08:03 +0500
commit49b187034d05c99aee7bd83f313f774ad55156eb (patch)
treef4598d76f6c5d538034a6b379671cf8a7e2fa3db /mysql-test/t/grant.test
parent45400e5ca328910742640506bfd48658e81a6fc1 (diff)
parentd13861546e8402e75e837f1e3e14dee7fc2ef032 (diff)
downloadmariadb-git-49b187034d05c99aee7bd83f313f774ad55156eb.tar.gz
Merge mysql.com:/home/ram/work/mysql-5.0-maint
into mysql.com:/home/ram/work/b27515/b27515.5.0
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 623bd4363cb..197f20db76e 100644
--- a/mysql-test/t/grant.test
+++ b/mysql-test/t/grant.test
@@ -540,7 +540,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 ""