diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2022-03-19 18:40:13 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2022-06-12 17:24:11 +0300 |
commit | 3e48181ed55962daac89e1105e4863462fc1372c (patch) | |
tree | 72aadbb16b0b02280d0300223311a2a419c40473 | |
parent | 75369fb8785f1c3c6dfdf179dae571d0caba1364 (diff) | |
download | mariadb-git-3e48181ed55962daac89e1105e4863462fc1372c.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 9dc92c6df4a..45619e4fbed 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); |