summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorunknown <thek@adventure.(none)>2007-05-30 17:17:46 +0200
committerunknown <thek@adventure.(none)>2007-05-30 17:17:46 +0200
commite1dec83b4a69521f5c522aff0ca6587e403b037a (patch)
tree0d0f6510324f4688b35a162f5f9abd6a72774d65 /sql/sql_show.cc
parentd4b3c91e63d09f78915691d37ea180af3969b508 (diff)
parent416122b29c0f73b6f70cf63a0411cf465fd307a8 (diff)
downloadmariadb-git-e1dec83b4a69521f5c522aff0ca6587e403b037a.tar.gz
Merge adventure.(none):/home/thek/Development/cpp/bug24988/my51-bug24988
into adventure.(none):/home/thek/Development/cpp/mysql-5.1-runtime sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/sql_insert.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_show.cc: Auto merged
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index e8107248c14..84ddbc50712 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -706,7 +706,7 @@ bool mysqld_show_create_db(THD *thd, char *dbname,
else
db_access= (acl_get(sctx->host, sctx->ip, sctx->priv_user, dbname, 0) |
sctx->master_access);
- if (!(db_access & DB_ACLS) && (!grant_option || check_grant_db(thd,dbname)))
+ if (!(db_access & DB_ACLS) && check_grant_db(thd,dbname))
{
my_error(ER_DBACCESS_DENIED_ERROR, MYF(0),
sctx->priv_user, sctx->host_or_ip, dbname);
@@ -2649,7 +2649,7 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
&thd->col_access, 0, 1, with_i_schema) ||
sctx->master_access & (DB_ACLS | SHOW_DB_ACL) ||
acl_get(sctx->host, sctx->ip, sctx->priv_user, base_name,0) ||
- (grant_option && !check_grant_db(thd, base_name)))
+ !check_grant_db(thd, base_name))
#endif
{
List<char> files;
@@ -2849,7 +2849,7 @@ int fill_schema_shemata(THD *thd, TABLE_LIST *tables, COND *cond)
#ifndef NO_EMBEDDED_ACCESS_CHECKS
if (sctx->master_access & (DB_ACLS | SHOW_DB_ACL) ||
acl_get(sctx->host, sctx->ip, sctx->priv_user, file_name,0) ||
- (grant_option && !check_grant_db(thd, file_name)))
+ !check_grant_db(thd, file_name))
#endif
{
load_db_opt_by_name(thd, file_name, &create);