24#ifndef SQL_SERVICE_CONTEXT_INCLUDE
25#define SQL_SERVICE_CONTEXT_INCLUDE
227 void handle_ok(uint server_status, uint statement_warn_count,
229 const char *
const message)
override;
238 void handle_error(uint sql_errno,
const char *
const err_msg,
239 const char *
const sqlstate)
override;
Definition: sql_resultset.h:74
void clear()
resultset class
Definition: sql_resultset.cc:104
Definition: sql_service_context_base.h:35
Definition: sql_service_context.h:34
Sql_service_context(Sql_resultset *rset)
Definition: sql_service_context.h:36
int get_datetime(const MYSQL_TIME *value, uint decimals) override
Get DATETIME value from server.
Definition: sql_service_context.cc:124
~Sql_service_context() override=default
int start_row() override
Indicates the beginning of a new row in the result set/metadata.
Definition: sql_service_context.cc:63
bool connection_alive() override
Check if the connection is still alive.
Definition: sql_service_context.h:249
void abort_row() override
An error occurred during execution.
Definition: sql_service_context.cc:75
void handle_ok(uint server_status, uint statement_warn_count, ulonglong affected_rows, ulonglong last_insert_id, const char *const message) override
Getting execution status.
Definition: sql_service_context.cc:138
int get_time(const MYSQL_TIME *value, uint decimals) override
Get TIME value from server.
Definition: sql_service_context.cc:118
void shutdown(int flag) override
Session was shutdown while command was running.
Definition: sql_service_context.cc:170
int start_result_metadata(uint num_cols, uint flags, const CHARSET_INFO *resultcs) override
Getting metadata.
Definition: sql_service_context.cc:30
int end_row() override
Indicates end of the row in the result set/metadata.
Definition: sql_service_context.cc:69
int field_metadata(struct st_send_field *field, const CHARSET_INFO *charset) override
Field metadata is provided via this callback.
Definition: sql_service_context.cc:41
int get_date(const MYSQL_TIME *value) override
Get DATE value from server.
Definition: sql_service_context.cc:112
int end_result_metadata(uint server_status, uint warn_count) override
Indicates end of metadata for the result set.
Definition: sql_service_context.cc:58
int get_longlong(longlong value, uint is_unsigned) override
Get LONGLONG value from server.
Definition: sql_service_context.cc:94
void handle_error(uint sql_errno, const char *const err_msg, const char *const sqlstate) override
Command ended with ERROR.
Definition: sql_service_context.cc:154
int get_decimal(const decimal_t *value) override
Receive DECIMAL value from server.
Definition: sql_service_context.cc:100
Sql_resultset * resultset
Definition: sql_service_context.h:253
ulong get_client_capabilities() override
Return client's capabilities (see mysql_com.h, CLIENT_*)
Definition: sql_service_context.cc:77
int get_null() override
Getting data.
Definition: sql_service_context.cc:82
int get_double(double value, uint32 decimals) override
Receive DOUBLE value from server.
Definition: sql_service_context.cc:106
int get_string(const char *const value, size_t length, const CHARSET_INFO *const valuecs) override
Get STRING value from server.
Definition: sql_service_context.cc:130
int get_integer(longlong value) override
Get TINY/SHORT/LONG value from server.
Definition: sql_service_context.cc:88
static int flags[50]
Definition: hp_test1.cc:40
static int flag
Definition: hp_test1.cc:40
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
long long int longlong
Definition: my_inttypes.h:55
uint32_t uint32
Definition: my_inttypes.h:67
constexpr value_type is_unsigned
Definition: classic_protocol_constants.h:273
const std::string charset("charset")
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Definition: m_ctype.h:423
Definition: mysql_time.h:82
intg is the number of decimal digits (NOT number of decimal_digit_t's !) before the point frac is the...
Definition: decimal.h:52
Definition: service_command.h:45