summaryrefslogtreecommitdiff
path: root/sql/sql_acl.h
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2003-12-20 00:54:38 +0300
committersergefp@mysql.com <>2003-12-20 00:54:38 +0300
commit23b25675f269acb2ae07e8a32bb37f68d523b299 (patch)
tree6f1ee123b4c43806a2d62ab70bfdc1402e51dff9 /sql/sql_acl.h
parenta8456e6801040e9b10aa3a89621b360684dc543c (diff)
parent29e1bddb4337481ae2fbdfb6558060f85841eacb (diff)
downloadmariadb-git-23b25675f269acb2ae07e8a32bb37f68d523b299.tar.gz
Merge mysql.com:/home/psergey/mysql-5.0-latest-pull
into mysql.com:/dbdata/psergey/mysql-5.0-imerge-unique
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r--sql/sql_acl.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h
index 9858b403d27..f17c9781e8c 100644
--- a/sql/sql_acl.h
+++ b/sql/sql_acl.h
@@ -58,8 +58,6 @@
#define EXTRA_ACL (1L << 29)
#define NO_ACCESS (1L << 30)
-#ifndef NO_EMBEDDED_ACCESS_CHECKS
-
/*
Defines to change the above bits to how things are stored in tables
This is needed as the 'host' and 'db' table is missing a few privileges
@@ -127,8 +125,6 @@ public:
char *user,*db;
};
-
-
/* prototypes */
bool hostname_requires_resolving(const char *hostname);
@@ -153,7 +149,7 @@ my_bool grant_init(THD *thd);
void grant_free(void);
void grant_reload(THD *thd);
bool check_grant(THD *thd, ulong want_access, TABLE_LIST *tables,
- uint show_command=0, bool dont_print_error=0);
+ uint show_command, bool dont_print_error);
bool check_grant_column (THD *thd,TABLE *table, const char *name, uint length,
uint show_command=0);
bool check_grant_all_columns(THD *thd, ulong want_access, TABLE *table);
@@ -166,5 +162,7 @@ void get_mqh(const char *user, const char *host, USER_CONN *uc);
int mysql_drop_user(THD *thd, List <LEX_USER> &list);
int mysql_revoke_all(THD *thd, List <LEX_USER> &list);
-#endif /*!NO_EMBEDDED_ACCESS_CHECKS*/
-
+#ifdef NO_EMBEDDED_ACCESS_CHECKS
+#define check_grant(A,B,C,D,E) 0
+#define check_grant_db(A,B) 0
+#endif