24#ifndef SQL_RESULTSET_INCLUDE
25#define SQL_RESULTSET_INCLUDE
320 return const_cast<char *
>(
"");
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
Definition: sql_resultset.h:74
void set_warn_count(uint warn_count)
set count of warning issued during command execution
Definition: sql_resultset.h:160
ulonglong get_affected_rows()
return rows affected dure to last command execution
Definition: sql_resultset.h:256
void set_last_insert_id(ulonglong last_insert_id)
set value of the AUTOINCREMENT column for the last INSERT
Definition: sql_resultset.h:176
std::vector< Field_type > result_meta
Definition: sql_resultset.h:399
void increment_rows()
Definition: sql_resultset.h:121
ulonglong m_last_insert_id
Definition: sql_resultset.h:413
void set_sql_errno(uint sql_errno)
set sql error number saved during error in last command execution
Definition: sql_resultset.h:193
ulonglong m_affected_rows
Definition: sql_resultset.h:412
const CHARSET_INFO * get_charset()
get resultset charset info
Definition: sql_resultset.h:235
char * getString(uint columnIndex)
Definition: sql_resultset.h:317
std::vector< std::vector< Field_value * > > result_value
Definition: sql_resultset.h:397
std::string sqlstate()
get sql error state saved during error in last command execution
Definition: sql_resultset.h:294
std::string get_column_name(uint rowIndex=0)
Definition: sql_resultset.h:347
std::string get_org_table(uint rowIndex=0)
Definition: sql_resultset.h:342
void new_field(Field_value *val)
Definition: sql_resultset.cc:134
~Sql_resultset()
Definition: sql_resultset.h:89
MYSQL_TIME getTime(uint columnIndex)
Definition: sql_resultset.h:312
uint get_cols()
Definition: sql_resultset.h:228
enum_field_types get_field_type(uint rowIndex=0)
Definition: sql_resultset.h:382
void first()
Definition: sql_resultset.h:115
std::string get_org_column_name(uint rowIndex=0)
Definition: sql_resultset.h:352
longlong getLong(uint columnIndex)
Definition: sql_resultset.h:297
std::string get_table(uint rowIndex=0)
Definition: sql_resultset.h:337
decimal_t getDecimal(uint columnIndex)
Definition: sql_resultset.h:302
bool get_killed_status()
Definition: sql_resultset.h:393
void set_metadata(Field_type ftype)
Definition: sql_resultset.h:326
void absolute(int row)
Definition: sql_resultset.h:112
std::string get_message()
get client message
Definition: sql_resultset.h:270
void set_rows(uint rows)
Set Methods.
Definition: sql_resultset.h:130
void set_killed()
Definition: sql_resultset.h:212
uint num_metarow
Definition: sql_resultset.h:404
uint num_cols
Definition: sql_resultset.h:402
int current_row
Definition: sql_resultset.h:401
unsigned long get_length(uint rowIndex=0)
Definition: sql_resultset.h:357
void set_err_msg(std::string msg)
set sql error message saved during error in last command execution
Definition: sql_resultset.h:201
std::string m_sqlstate
Definition: sql_resultset.h:418
Sql_resultset()
Definition: sql_resultset.h:76
uint sql_errno()
Getting error info.
Definition: sql_resultset.h:280
uint m_server_status
Definition: sql_resultset.h:408
const CHARSET_INFO * m_resultcs
Definition: sql_resultset.h:406
std::string m_err_msg
Definition: sql_resultset.h:417
std::string err_msg()
get sql error message saved during error in last command execution
Definition: sql_resultset.h:287
void set_sqlstate(std::string state)
set sql error state saved during error in last command execution
Definition: sql_resultset.h:209
void last()
Definition: sql_resultset.h:118
void set_charset(const CHARSET_INFO *result_cs)
set resultset charset info
Definition: sql_resultset.h:144
std::string m_message
Definition: sql_resultset.h:414
void clear()
resultset class
Definition: sql_resultset.cc:104
uint get_warn_count()
get count of warning issued during command execution
Definition: sql_resultset.h:249
uint get_rows()
Get Methods.
Definition: sql_resultset.h:221
void set_cols(uint cols)
Definition: sql_resultset.h:137
uint get_server_status()
get server status.
Definition: sql_resultset.h:242
uint m_sql_errno
Definition: sql_resultset.h:416
void set_message(std::string msg)
set client message
Definition: sql_resultset.h:185
void new_row()
Definition: sql_resultset.cc:130
uint num_rows
Definition: sql_resultset.h:403
unsigned int get_flags(uint rowIndex=0)
Definition: sql_resultset.h:372
unsigned int get_charsetnr(uint rowIndex=0)
Definition: sql_resultset.h:362
void set_affected_rows(ulonglong affected_rows)
set rows affected due to last command execution
Definition: sql_resultset.h:167
ulonglong get_last_insert_id()
get value of the AUTOINCREMENT column for the last INSERT
Definition: sql_resultset.h:263
double getDouble(uint columnIndex)
Definition: sql_resultset.h:307
unsigned int get_decimals(uint rowIndex=0)
Definition: sql_resultset.h:377
uint m_warn_count
Definition: sql_resultset.h:409
std::string get_database(uint rowIndex=0)
Definition: sql_resultset.h:332
bool next()
Definition: sql_resultset.cc:138
bool m_killed
Definition: sql_resultset.h:420
void set_server_status(uint server_status)
set server status.
Definition: sql_resultset.h:151
enum_field_types
Column types for MySQL Note: Keep include/mysql/components/services/bits/stored_program_bits....
Definition: field_types.h:55
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
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1105
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:421
Definition: sql_resultset.h:36
unsigned int charsetnr
Definition: sql_resultset.h:43
unsigned int flags
Definition: sql_resultset.h:44
unsigned long length
Definition: sql_resultset.h:42
unsigned int decimals
Definition: sql_resultset.h:45
enum_field_types type
Definition: sql_resultset.h:46
std::string db_name
Definition: sql_resultset.h:37
std::string org_col_name
Definition: sql_resultset.h:41
std::string org_table_name
Definition: sql_resultset.h:39
std::string table_name
Definition: sql_resultset.h:38
std::string col_name
Definition: sql_resultset.h:40
Definition: sql_resultset.h:49
bool is_unsigned
Definition: sql_resultset.h:67
decimal_t v_decimal
Definition: sql_resultset.h:62
Field_value & operator=(const Field_value &other)
Definition: sql_resultset.cc:41
MYSQL_TIME v_time
Definition: sql_resultset.h:63
~Field_value()
Definition: sql_resultset.cc:96
union Field_value::@15 value
Field_value()
Definition: sql_resultset.cc:29
void copy_string(const char *str, size_t length)
Definition: sql_resultset.cc:79
char * v_string
Definition: sql_resultset.h:64
bool has_ptr
Definition: sql_resultset.h:68
size_t v_string_length
Definition: sql_resultset.h:66
longlong v_long
Definition: sql_resultset.h:60
double v_double
Definition: sql_resultset.h:61
Definition: mysql_time.h:82
Base struct used to represent decimal data type.
Definition: decimal.h:49
A structure to store a decimal value together with its precision and number of decimals TODO: HCS-100...
Definition: protocol_local_v2.h:43