MySQL 9.0.0
Source Code Documentation
parser_service.cc File Reference
#include <stddef.h>
#include <sys/types.h>
#include <algorithm>
#include <new>
#include "lex_string.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_sqlcommand.h"
#include "my_thread.h"
#include "mysql/mysql_lex_string.h"
#include "mysql/psi/mysql_thread.h"
#include "mysql/service_parser.h"
#include "sql/auth/sql_security_ctx.h"
#include "sql/current_thd.h"
#include "sql/enum_query_type.h"
#include "sql/error_handler.h"
#include "sql/item.h"
#include "sql/mdl.h"
#include "sql/mysqld.h"
#include "sql/mysqld_thd_manager.h"
#include "sql/protocol_classic.h"
#include "sql/select_lex_visitor.h"
#include "sql/sql_base.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"
#include "sql/sql_digest.h"
#include "sql/sql_digest_stream.h"
#include "sql/sql_error.h"
#include "sql/sql_lex.h"
#include "sql/sql_list.h"
#include "sql/sql_parse.h"
#include "sql/system_variables.h"
#include "sql/transaction.h"
#include "sql_string.h"
#include "string_with_len.h"
#include "template_utils.h"

Classes

class  Service_visitor
 This class implements the parse tree visiting service. More...
 
class  Plugin_error_handler
 This class implements the framework needed for the callback function that handles conditions that may arise during parsing via the parser service. More...
 
struct  anonymous_namespace{parser_service.cc}::thread_args
 

Namespaces

namespace  anonymous_namespace{parser_service.cc}
 

Functions

MYSQL_THD mysql_parser_current_session ()
 
MYSQL_THD mysql_parser_open_session ()
 
void * anonymous_namespace{parser_service.cc}::parser_service_start_routine (void *arg)
 
void mysql_parser_start_thread (THD *thd, callback_function fun, void *arg, my_thread_handle *thread_handle)
 
void mysql_parser_join_thread (my_thread_handle *thread_id)
 
void mysql_parser_set_current_database (MYSQL_THD thd, const MYSQL_LEX_STRING db)
 
int mysql_parser_parse (MYSQL_THD thd, const MYSQL_LEX_STRING query, unsigned char is_prepared, sql_condition_handler_function handle_condition, void *condition_handler_state)
 
int mysql_parser_get_statement_type (MYSQL_THD thd)
 
int mysql_parser_get_statement_digest (MYSQL_THD thd, uchar *digest)
 
int mysql_parser_get_number_params (MYSQL_THD thd)
 
int mysql_parser_extract_prepared_params (MYSQL_THD thd, int *positions)
 
int mysql_parser_visit_tree (MYSQL_THD thd, parse_node_visit_function processor, unsigned char *arg)
 
MYSQL_LEX_STRING mysql_parser_item_string (MYSQL_ITEM item)
 
void mysql_parser_free_string (MYSQL_LEX_STRING string)
 
MYSQL_LEX_STRING mysql_parser_get_query (MYSQL_THD thd)
 
MYSQL_LEX_STRING mysql_parser_get_normalized_query (MYSQL_THD thd)
 

Function Documentation

◆ mysql_parser_current_session()

MYSQL_THD mysql_parser_current_session ( )

◆ mysql_parser_extract_prepared_params()

int mysql_parser_extract_prepared_params ( MYSQL_THD  thd,
int *  positions 
)

◆ mysql_parser_free_string()

void mysql_parser_free_string ( MYSQL_LEX_STRING  string)

◆ mysql_parser_get_normalized_query()

MYSQL_LEX_STRING mysql_parser_get_normalized_query ( MYSQL_THD  thd)

◆ mysql_parser_get_number_params()

int mysql_parser_get_number_params ( MYSQL_THD  thd)

◆ mysql_parser_get_query()

MYSQL_LEX_STRING mysql_parser_get_query ( MYSQL_THD  thd)

◆ mysql_parser_get_statement_digest()

int mysql_parser_get_statement_digest ( MYSQL_THD  thd,
uchar digest 
)

◆ mysql_parser_get_statement_type()

int mysql_parser_get_statement_type ( MYSQL_THD  thd)

◆ mysql_parser_item_string()

MYSQL_LEX_STRING mysql_parser_item_string ( MYSQL_ITEM  item)

◆ mysql_parser_join_thread()

void mysql_parser_join_thread ( my_thread_handle thread_id)

◆ mysql_parser_open_session()

MYSQL_THD mysql_parser_open_session ( )

◆ mysql_parser_parse()

int mysql_parser_parse ( MYSQL_THD  thd,
const MYSQL_LEX_STRING  query,
unsigned char  is_prepared,
sql_condition_handler_function  handle_condition,
void *  condition_handler_state 
)

◆ mysql_parser_set_current_database()

void mysql_parser_set_current_database ( MYSQL_THD  thd,
const MYSQL_LEX_STRING  db 
)

◆ mysql_parser_start_thread()

void mysql_parser_start_thread ( THD thd,
callback_function  fun,
void *  arg,
my_thread_handle thread_handle 
)

◆ mysql_parser_visit_tree()

int mysql_parser_visit_tree ( MYSQL_THD  thd,
parse_node_visit_function  processor,
unsigned char *  arg 
)