1#ifndef SERVICES_INCLUDED
2#define SERVICES_INCLUDED
100 virtual bool handle(
int sql_errno,
const char *sqlstate,
101 const char *message) = 0;
#define MYSQL_THD
Definition: backup_page_tracker.h:38
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:936
The handler class is the interface for dynamically loadable storage engines.
Definition: handler.h:4573
This class may inherited and passed to parse() in order to handle conditions raised by the server.
Definition: services.h:86
virtual ~Condition_handler()=0
virtual bool handle(int sql_errno, const char *sqlstate, const char *message)=0
This function will be called by the server via this API before raising a condition.
Definition: services.h:60
bool load(MYSQL_THD thd)
Copies the digest buffer from the server.
Definition: services.cc:49
const uchar * c_ptr() const
Needed because we use a C hash table to store digests.
Definition: services.h:73
uchar m_buf[PARSER_SERVICE_DIGEST_LENGTH]
Definition: services.h:61
Definition: services.h:76
virtual ~Literal_visitor()=default
virtual bool visit(MYSQL_ITEM item)=0
Definition: services.h:49
Session(MYSQL_THD current_session)
Definition: services.cc:53
MYSQL_THD thd()
Definition: services.h:53
MYSQL_THD m_current_session
Definition: services.h:57
MYSQL_THD m_previous_session
Definition: services.h:56
Some integer typedefs for easier portability.
unsigned char uchar
Definition: my_inttypes.h:52
static char * query
Definition: myisam_ftdump.cc:47
Definition: services.cc:40
int get_number_params(MYSQL_THD thd)
Definition: services.cc:99
string print_item(MYSQL_ITEM item)
Prints an Item as an std::string.
Definition: services.cc:132
bool visit_parse_tree(MYSQL_THD thd, Literal_visitor *visitor)
Definition: services.cc:109
std::vector< int > get_parameter_positions(MYSQL_THD thd)
Definition: services.cc:162
string print_digest(const unsigned char *digest)
Definition: services.cc:42
string get_current_query_normalized(MYSQL_THD thd)
Definition: services.cc:139
bool parse(MYSQL_THD thd, const string &query, bool is_prepared, Condition_handler *handler)
Definition: services.cc:81
void set_current_database(MYSQL_THD thd, const string &db)
Definition: services.cc:76
bool is_supported_statement(MYSQL_THD thd)
Definition: services.cc:92
Plugin service that provides access to the parser and some operations on the parse tree.
#define PARSER_SERVICE_DIGEST_LENGTH
Definition: service_parser.h:45