summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-04-17 16:52:50 +0500
committerramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-04-17 16:52:50 +0500
commitf4060b4b81f04580d144d3b70e8dae456697252a (patch)
treee29bbd5f1b0c05cefdb315cb44d014d89d2a4c49 /sql/sql_parse.cc
parent8d0755ba4734b6a26a01308e8a06cafe5f4d0d42 (diff)
downloadmariadb-git-f4060b4b81f04580d144d3b70e8dae456697252a.tar.gz
Fix for bug #27515: DROP previlege is not required anymore for RENAME TABLE
Added missed DROP privilege check on the original table for RENAME TABLE command.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 66b68cfc2f1..659926bdea3 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -2818,7 +2818,7 @@ unsent_create_error:
old_list=table[0];
new_list=table->next[0];
old_list.next=new_list.next=0;
- if (check_grant(thd, ALTER_ACL, &old_list, 0, UINT_MAX, 0) ||
+ if (check_grant(thd, ALTER_ACL | DROP_ACL, &old_list, 0, UINT_MAX, 0) ||
(!test_all_bits(table->next->grant.privilege,
INSERT_ACL | CREATE_ACL) &&
check_grant(thd, INSERT_ACL | CREATE_ACL, &new_list, 0,