diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2022-03-19 18:40:13 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2022-03-19 18:40:13 +0200 |
commit | 51d0da3fc295df06624054300280fd59dafe8fd5 (patch) | |
tree | 57bdcd13f2ea7af66113b789e16f3a4ed666d013 | |
parent | cab7c62cc867a6a390db0a976c1a58de5ee3ee43 (diff) | |
download | mariadb-git-51d0da3fc295df06624054300280fd59dafe8fd5.tar.gz |
cleanup: check_fk_parent_table should be in sql_acl.h
-rw-r--r-- | sql/sql_acl.h | 4 | ||||
-rw-r--r-- | sql/sql_parse.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h index 589d4f231d9..a75034abd96 100644 --- a/sql/sql_acl.h +++ b/sql/sql_acl.h @@ -110,6 +110,10 @@ bool check_access(THD *thd, privilege_t want_access, const char *db, privilege_t *save_priv, GRANT_INTERNAL_INFO *grant_internal_info, bool dont_check_global_grants, bool no_errors); +bool check_fk_parent_table_access(THD *thd, + HA_CREATE_INFO *create_info, + Alter_info *alter_info, + const char* create_db); #ifndef NO_EMBEDDED_ACCESS_CHECKS bool check_one_table_access(THD *thd, privilege_t privilege, TABLE_LIST *tables); bool check_single_table_access(THD *thd, privilege_t privilege, diff --git a/sql/sql_parse.h b/sql/sql_parse.h index a3b6c07de62..8ccf28158ea 100644 --- a/sql/sql_parse.h +++ b/sql/sql_parse.h @@ -47,10 +47,6 @@ bool delete_precheck(THD *thd, TABLE_LIST *tables); bool insert_precheck(THD *thd, TABLE_LIST *tables); bool create_table_precheck(THD *thd, TABLE_LIST *tables, TABLE_LIST *create_table); -bool check_fk_parent_table_access(THD *thd, - HA_CREATE_INFO *create_info, - Alter_info *alter_info, - const char* create_db); bool parse_sql(THD *thd, Parser_state *parser_state, Object_creation_ctx *creation_ctx, bool do_pfs_digest=false); |