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