diff options
author | bell@sanja.is.com.ua <> | 2005-09-14 12:26:09 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2005-09-14 12:26:09 +0300 |
commit | 9388f7277c97f2a7035213bcec71668da9e4fdd9 (patch) | |
tree | 8f20ee99d1bcfff01ffd56b0ec2aade7bc4a858f /sql/sql_view.cc | |
parent | 3f160eed87a52e583a53fcd1cc81bd73bb939cc1 (diff) | |
parent | 4113dbc1e7b50c43d26c873c426e72495130cb5d (diff) | |
download | mariadb-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.cc | 6 |
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; |