MySQL 8.4.2
Source Code Documentation
|
#include "sql/parse_tree_hints.h"
#include <assert.h>
#include <cstddef>
#include <cstdio>
#include <cstring>
#include "lex_string.h"
#include "my_alloc.h"
#include "my_sqlcommand.h"
#include "mysql/strings/m_ctype.h"
#include "mysqld_error.h"
#include "sql/derror.h"
#include "sql/item_subselect.h"
#include "sql/mysqld.h"
#include "sql/parse_tree_helpers.h"
#include "sql/query_options.h"
#include "sql/resourcegroups/resource_group_basic_types.h"
#include "sql/resourcegroups/resource_group_mgr.h"
#include "sql/set_var.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"
#include "sql/sql_error.h"
#include "sql/sql_lex.h"
#include "string_with_len.h"
Functions | |
static Opt_hints_global * | get_global_hints (Parse_context *pc) |
Returns pointer to Opt_hints_global object, create Opt_hints object if not exist. More... | |
static Opt_hints_qb * | get_qb_hints (Parse_context *pc, Query_block *select) |
Returns pointer to Opt_hints_qb object for query block given by parse context, create Opt_hints_qb object if not exist. More... | |
static Opt_hints_qb * | find_qb_hints (Parse_context *pc, const LEX_CSTRING *qb_name, PT_hint *hint) |
Find existing Opt_hints_qb object, print warning if the query block is not found. More... | |
static Opt_hints_table * | get_table_hints (Parse_context *pc, Hint_param_table *table_name, Opt_hints_qb *qb) |
Returns pointer to Opt_hints_table object, create Opt_hints_table object if not exist. More... | |
Variables | |
struct st_opt_hint_info | opt_hint_info [] |
Information about hints. More... | |
|
static |
Find existing Opt_hints_qb object, print warning if the query block is not found.
pc | pointer to Parse_context object |
qb_name | query block name |
hint | processed hint |
|
static |
Returns pointer to Opt_hints_global object, create Opt_hints object if not exist.
pc | pointer to Parse_context object |
|
static |
Returns pointer to Opt_hints_qb object for query block given by parse context, create Opt_hints_qb object if not exist.
pc | pointer to Parse_context object |
select | pointer to Query_block object |
|
static |
Returns pointer to Opt_hints_table object, create Opt_hints_table object if not exist.
pc | pointer to Parse_context object |
table_name | pointer to Hint_param_table object |
qb | pointer to Opt_hints_qb object |
|
extern |
Information about hints.
Should be synchronized with opt_hints_enum enum.
Note: Hint name depends on hint state. 'NO_' prefix is added if appropriate hint state bit(see Opt_hints_map::hints) is not set. Depending on 'switch_state_arg' argument in 'parse tree object' constructors(see parse_tree_hints.[h,cc]) implementor can control wishful form of the hint name.