summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2005-09-14 12:26:09 +0300
committerbell@sanja.is.com.ua <>2005-09-14 12:26:09 +0300
commit9388f7277c97f2a7035213bcec71668da9e4fdd9 (patch)
tree8f20ee99d1bcfff01ffd56b0ec2aade7bc4a858f /sql/sql_view.cc
parent3f160eed87a52e583a53fcd1cc81bd73bb939cc1 (diff)
parent4113dbc1e7b50c43d26c873c426e72495130cb5d (diff)
downloadmariadb-git-9388f7277c97f2a7035213bcec71668da9e4fdd9.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-owner2-5.0
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 6199113389a..5155e605ce0 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -254,11 +254,11 @@ bool mysql_create_view(THD *thd,
table (i.e. user will not get some privileges by view creation)
*/
if ((check_access(thd, CREATE_VIEW_ACL, view->db, &view->grant.privilege,
- 0, 0) ||
+ 0, 0, is_schema_db(view->db)) ||
grant_option && check_grant(thd, CREATE_VIEW_ACL, view, 0, 1, 0)) ||
(mode != VIEW_CREATE_NEW &&
(check_access(thd, DROP_ACL, view->db, &view->grant.privilege,
- 0, 0) ||
+ 0, 0, is_schema_db(view->db)) ||
grant_option && check_grant(thd, DROP_ACL, view, 0, 1, 0))))
{
res= TRUE;
@@ -310,7 +310,7 @@ bool mysql_create_view(THD *thd,
if (!tbl->table_in_first_from_clause)
{
if (check_access(thd, SELECT_ACL, tbl->db,
- &tbl->grant.privilege, 0, 0) ||
+ &tbl->grant.privilege, 0, 0, test(tbl->schema_table)) ||
grant_option && check_grant(thd, SELECT_ACL, tbl, 0, 1, 0))
{
res= TRUE;