MySQL 9.0.0
Source Code Documentation
|
#include "sql/parse_tree_helpers.h"
#include <assert.h>
#include <cstddef>
#include <initializer_list>
#include <utility>
#include <vector>
#include "lex_string.h"
#include "m_string.h"
#include "my_alloc.h"
#include "my_inttypes.h"
#include "my_sqlcommand.h"
#include "my_sys.h"
#include "mysql/mysql_lex_string.h"
#include "mysql/strings/m_ctype.h"
#include "mysql_com.h"
#include "mysqld_error.h"
#include "sql/current_thd.h"
#include "sql/dd/info_schema/show.h"
#include "sql/derror.h"
#include "sql/handler.h"
#include "sql/mem_root_array.h"
#include "sql/parse_location.h"
#include "sql/parse_tree_column_attrs.h"
#include "sql/parse_tree_nodes.h"
#include "sql/parser_yystype.h"
#include "sql/resourcegroups/platform/thread_attrs_api.h"
#include "sql/resourcegroups/resource_group_mgr.h"
#include "sql/sp_head.h"
#include "sql/sp_instr.h"
#include "sql/sp_pcontext.h"
#include "sql/sql_alter.h"
#include "sql/sql_class.h"
#include "sql/sql_error.h"
#include "sql/sql_lex.h"
#include "sql/sql_plugin_ref.h"
#include "sql/trigger_def.h"
#include "sql_string.h"
#include "strmake.h"
Functions | |
Item_splocal * | create_item_for_sp_var (THD *thd, LEX_CSTRING name, sp_variable *spv, const char *query_start_ptr, const char *start, const char *end) |
Create an object to represent a SP variable in the Item-hierarchy. More... | |
LEX_CSTRING | make_string (THD *thd, const char *start_ptr, const char *end_ptr) |
Make a new string allocated on THD's mem-root. More... | |
void | sp_create_assignment_lex (THD *thd, const char *option_ptr) |
bool | sp_create_assignment_instr (THD *thd, const char *expr_end_ptr) |
Create a SP instruction for a SET assignment. More... | |
bool | resolve_engine (THD *thd, const LEX_CSTRING &name, bool is_temp_table, bool strict, handlerton **ret) |
Resolve engine by its name. More... | |
bool | apply_privileges (THD *thd, const Mem_root_array< class PT_role_or_privilege * > &privs) |
This helper function is responsible for aggregating grants from parser tokens to containers and masks which can be used during semantic analysis. More... | |
bool | validate_vcpu_range (const resourcegroups::Range &range) |
bool | validate_resource_group_priority (THD *thd, int *priority, const LEX_CSTRING &name, const resourcegroups::Type &type) |
bool | check_resource_group_support () |
bool | check_resource_group_name_len (const LEX_CSTRING &name, Sql_condition::enum_severity_level severity) |
void | move_cf_appliers (Parse_context *tddlpc, Column_parse_context *cpc) |
bool apply_privileges | ( | THD * | thd, |
const Mem_root_array< class PT_role_or_privilege * > & | privs | ||
) |
This helper function is responsible for aggregating grants from parser tokens to containers and masks which can be used during semantic analysis.
thd | The thread handler |
privs | A list of parser tokens representing roles or privileges. |
true | An error occurred |
false | Success |
bool check_resource_group_name_len | ( | const LEX_CSTRING & | name, |
Sql_condition::enum_severity_level | severity | ||
) |
bool check_resource_group_support | ( | ) |
Item_splocal * create_item_for_sp_var | ( | THD * | thd, |
LEX_CSTRING | name, | ||
sp_variable * | spv, | ||
const char * | query_start_ptr, | ||
const char * | start, | ||
const char * | end | ||
) |
Create an object to represent a SP variable in the Item-hierarchy.
thd | The current thread. |
name | The SP variable name. |
spv | The SP variable (optional). |
query_start_ptr | Start of the SQL-statement query string (optional). |
start | Start position of the SP variable name in the query. |
end | End position of the SP variable name in the query. |
LEX_CSTRING make_string | ( | THD * | thd, |
const char * | start_ptr, | ||
const char * | end_ptr | ||
) |
Make a new string allocated on THD's mem-root.
thd | thread handler. |
start_ptr | start of the new string. |
end_ptr | end of the new string. |
void move_cf_appliers | ( | Parse_context * | tddlpc, |
Column_parse_context * | cpc | ||
) |
bool resolve_engine | ( | THD * | thd, |
const LEX_CSTRING & | name, | ||
bool | is_temp_table, | ||
bool | strict, | ||
handlerton ** | ret | ||
) |
Resolve engine by its name.
thd | Thread handler. | |
name | Engine's name. | |
is_temp_table | True if temporary table. | |
strict | Force error if engine is unknown(*). | |
[out] | ret | Engine object or NULL(**). |
strict
parameter. strict
if false and engine is unknown, the function outputs a warning, sets ret
to NULL and returns false (success). bool sp_create_assignment_instr | ( | THD * | thd, |
const char * | expr_end_ptr | ||
) |
Create a SP instruction for a SET assignment.
thd | Thread context |
expr_end_ptr | Option-value-expression end pointer |
void sp_create_assignment_lex | ( | THD * | thd, |
const char * | option_ptr | ||
) |
bool validate_resource_group_priority | ( | THD * | thd, |
int * | priority, | ||
const LEX_CSTRING & | name, | ||
const resourcegroups::Type & | type | ||
) |
bool validate_vcpu_range | ( | const resourcegroups::Range & | range | ) |