summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <gluh@eagle.intranet.mysql.r18.ru>2005-09-13 16:07:38 +0500
committerunknown <gluh@eagle.intranet.mysql.r18.ru>2005-09-13 16:07:38 +0500
commit3764875ca6fa16865f865ba9a643ac394c21217e (patch)
treef20a23c19bac54360e7acba7084834ecfbd7b337 /sql/sql_update.cc
parentb50eb4cd42d2d5073afb2af5af8b19c825a9cca1 (diff)
downloadmariadb-git-3764875ca6fa16865f865ba9a643ac394c21217e.tar.gz
Bug#9683 INFORMATION_SCH: Creation of temporary table allowed in
Information_schema DB Bug#9846 Inappropriate error displayed while dropping table from 'INFORMATION_SCHEMA' Bug#10734 Grant of privileges other than 'select' and 'create view' should fail on schema Bug#10708 SP's can use INFORMATION_SCHEMA as ROUTINE_SCHEMA cumulative fix for bugs above(after review, 2nd version) added privilege check for information schema db & tables
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 42c06d478be..e02bebfaded 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -720,7 +720,8 @@ bool mysql_multi_update_prepare(THD *thd)
{
uint want_privilege= tl->updating ? UPDATE_ACL : SELECT_ACL;
if (check_access(thd, want_privilege,
- tl->db, &tl->grant.privilege, 0, 0) ||
+ tl->db, &tl->grant.privilege, 0, 0,
+ test(tl->schema_table)) ||
(grant_option && check_grant(thd, want_privilege, tl, 0, 1, 0)))
DBUG_RETURN(TRUE);
}