MySQL 9.1.0
Source Code Documentation
|
Class to validate the flawlessness of ACL table before performing ACL operations. More...
#include <sql_user_table.h>
Public Member Functions | |
Acl_table_intact (THD *c_thd, enum loglevel log_level=ERROR_LEVEL) | |
bool | check (TABLE *table, ACL_TABLES acl_table) |
Checks whether an ACL table is intact. More... | |
Public Member Functions inherited from System_table_intact | |
System_table_intact (THD *thd, enum loglevel log_level=ERROR_LEVEL) | |
THD * | thd () |
Public Member Functions inherited from Table_check_intact | |
Table_check_intact () | |
virtual | ~Table_check_intact ()=default |
bool | check (THD *thd, TABLE *table, const TABLE_FIELD_DEF *table_def) |
Checks whether a table is intact. More... | |
Static Private Attributes | |
static const TABLE_FIELD_DEF | mysql_acl_table_defs [] |
keep in sync with ACL_TABLES More... | |
Additional Inherited Members | |
Protected Member Functions inherited from System_table_intact | |
void | report_error (uint code, const char *fmt,...) override |
Protected Attributes inherited from Table_check_intact | |
bool | has_keys |
Class to validate the flawlessness of ACL table before performing ACL operations.
|
inline |
|
inline |
Checks whether an ACL table is intact.
Works in conjunction with mysql_acl_table_defs and Table_check_intact::check()
table | Table to check. |
acl_table | ACL Table "id" |
false | OK |
true | There was an error. |
|
staticprivate |
keep in sync with ACL_TABLES