23#ifndef SQL_GET_DIAGNOSTICS_H
24#define SQL_GET_DIAGNOSTICS_H
119 template <
typename Diag_item,
typename Context>
124 if (!(value = diag_item->get_value(thd, ctx)))
return true;
127 return diag_item->set_value(thd, &value);
Stores status of the currently executed statement.
Definition: sql_error.h:268
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:853
Definition: sql_list.h:433
Sql_cmd_get_diagnostics represents a GET DIAGNOSTICS statement.
Definition: sql_get_diagnostics.h:47
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_get_diagnostics.h:56
Diagnostics_information * m_info
The information to be obtained.
Definition: sql_get_diagnostics.h:64
bool execute(THD *thd) override
Execute this GET DIAGNOSTICS statement.
Definition: sql_get_diagnostics.cc:61
Sql_cmd_get_diagnostics(Diagnostics_information *info)
Constructor, used to represent a GET DIAGNOSTICS statement.
Definition: sql_get_diagnostics.h:54
Representation of an SQL command.
Definition: sql_cmd.h:81
Representation of a SQL condition.
Definition: sql_error.h:57
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:166
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
enum_sql_command
Definition: my_sqlcommand.h:45
@ SQLCOM_GET_DIAGNOSTICS
Definition: my_sqlcommand.h:179
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1063
bool area(const dd::Spatial_reference_system *srs, const Geometry *g, const char *func_name, double *result, bool *result_null) noexcept
Definition: area.cc:78
Representation of an SQL command.
case opt name
Definition: sslopt-case.h:32