24#ifndef DD_UPGRADE_IMPL__SERVER_H_INCLUDED
25#define DD_UPGRADE_IMPL__SERVER_H_INCLUDED
123 const char *msg)
override;
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
This class represents the interface for internal error handlers.
Definition: error_handler.h:47
enum_severity_level
Enumeration value describing the severity of the condition.
Definition: sql_error.h:63
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
This class represents abstract time zone and provides basic interface for MYSQL_TIME <-> my_time_t co...
Definition: tztime.h:49
Abstract base class for functions and procedures.
Definition: routine.h:61
Bootstrap thread executes SQL statements.
Definition: server.h:66
void clear_allowlist_errors()
Definition: server.cc:150
ErrorHandlerFunctionPointer m_old_error_handler_hook
Definition: server.h:68
Bootstrap_error_handler()
Definition: server.cc:128
static void set_abort_on_error(uint error)
Definition: server.cc:116
static bool should_log_error(uint error)
Definition: server.cc:139
static bool abort_on_error
Definition: server.h:90
static void my_message_bootstrap(uint error, const char *str, myf MyFlags)
Definition: server.cc:103
~Bootstrap_error_handler()
Definition: server.cc:154
static std::set< uint > m_allowlist_errors
Definition: server.h:92
void set_allowlist_errors(std::set< uint > &error_codes)
Definition: server.cc:145
void set_log_error(bool log_error)
Definition: server.cc:135
static bool m_log_error
Definition: server.h:89
RAII for handling creation context of Events and Stored routines.
Definition: server.h:142
THD * m_thd
Definition: server.h:143
::Time_zone * m_saved_time_zone
Definition: server.h:145
const CHARSET_INFO * m_client_cs
Definition: server.h:146
const CHARSET_INFO * m_connection_cl
Definition: server.h:147
~Routine_event_context_guard()
Definition: server.cc:177
Routine_event_context_guard(THD *thd)
Definition: server.cc:169
sql_mode_t m_sql_mode
Definition: server.h:144
This class keeps a count of all the syntax errors that occurred while parsing views,...
Definition: server.h:116
static bool is_parse_error
Definition: server.h:131
void reset_last_condition()
Definition: server.cc:208
Syntax_error_handler()
Definition: server.h:118
static bool has_too_many_errors()
Definition: server.cc:224
static const uint MAX_SERVER_CHECK_FAILS
Definition: server.h:132
Upgrade_error_counter * m_global_counter
Definition: server.h:134
static bool has_errors()
Definition: server.cc:228
static dd::String_type reason
Definition: server.h:133
static const char * error_message()
Definition: server.cc:230
Syntax_error_handler(Upgrade_error_counter *counter)
Definition: server.h:119
bool handle_condition(THD *, uint sql_errno, const char *, Sql_condition::enum_severity_level *, const char *msg) override
Handle a sql condition.
Definition: server.cc:193
static uint parse_error_count
Definition: server.h:130
Class to keep track of upgrade errors during upgrade after 8.0 GA.
Definition: server.h:98
bool has_too_many_errors()
Definition: server.cc:237
int m_error_count
Definition: server.h:100
Upgrade_error_counter operator++(int)
Definition: server.cc:240
const int ERROR_LIMIT
Definition: server.h:101
Upgrade_error_counter()
Definition: server.h:104
bool has_errors()
Definition: server.cc:236
Upgrade_error_counter operator--(int)
Definition: server.cc:244
uint64_t sql_mode_t
Definition: dd_event.h:39
#define log_error(...)
Definition: log_client.h:155
void(*)(uint, const char *, myf) ErrorHandlerFunctionPointer
Definition: my_sys.h:229
Some integer typedefs for easier portability.
int myf
Definition: my_inttypes.h:94
Common header for many mysys elements.
uint counter
Definition: mysqlimport.cc:58
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1081
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
borrowable::session_track::Schema< true > Schema
Definition: classic_protocol_session_track.h:288
bool invalid_sql(THD *thd, const char *dbname, const dd::String_type &sql)
Validate the SQL string provided.
Definition: server.cc:1128
void update_upgrade_history_file(bool initialize)
Maintain a file named "mysql_upgrade_history" in the data directory.
Definition: server.cc:883
bool do_server_upgrade_checks(THD *thd)
Performs validation on server metadata.
Definition: server.cc:1005
bool build_event_sp(const THD *thd, const char *name, size_t name_len, const char *body, size_t body_len, dd::String_type *sp_sql)
Helper function to create a stored procedure from an event body.
Definition: server.cc:1160
bool invalid_triggers(THD *thd, const char *schema_name, const dd::Table &table)
Validate all the triggers of the given table.
Definition: server.cc:1105
bool invalid_routine(THD *thd, const dd::Schema &schema, const dd::Routine &routine)
Validate a dd::Routine object.
Definition: server.cc:1065
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
MYSQL_STRINGS_EXPORT void initialize(const char *charset_dir=nullptr, MY_CHARSET_LOADER *loader=nullptr)
Initialize character set/collation library.
Definition: collations.cc:98
case opt name
Definition: sslopt-case.h:29
Definition: m_ctype.h:423