24#ifndef SQL_RESULTSET_INCLUDE
25#define SQL_RESULTSET_INCLUDE
318 return const_cast<char *
>(
"");
Definition: sql_resultset.h:72
void set_warn_count(uint warn_count)
set count of warning issued during command execution
Definition: sql_resultset.h:158
ulonglong get_affected_rows()
return rows affected dure to last command execution
Definition: sql_resultset.h:254
void set_last_insert_id(ulonglong last_insert_id)
set value of the AUTOINCREMENT column for the last INSERT
Definition: sql_resultset.h:174
std::vector< Field_type > result_meta
Definition: sql_resultset.h:397
void increment_rows()
Definition: sql_resultset.h:119
ulonglong m_last_insert_id
Definition: sql_resultset.h:411
void set_sql_errno(uint sql_errno)
set sql error number saved during error in last command execution
Definition: sql_resultset.h:191
ulonglong m_affected_rows
Definition: sql_resultset.h:410
const CHARSET_INFO * get_charset()
get resultset charset info
Definition: sql_resultset.h:233
char * getString(uint columnIndex)
Definition: sql_resultset.h:315
std::vector< std::vector< Field_value * > > result_value
Definition: sql_resultset.h:395
std::string sqlstate()
get sql error state saved during error in last command execution
Definition: sql_resultset.h:292
std::string get_column_name(uint rowIndex=0)
Definition: sql_resultset.h:345
std::string get_org_table(uint rowIndex=0)
Definition: sql_resultset.h:340
void new_field(Field_value *val)
Definition: sql_resultset.cc:134
~Sql_resultset()
Definition: sql_resultset.h:87
MYSQL_TIME getTime(uint columnIndex)
Definition: sql_resultset.h:310
uint get_cols()
Definition: sql_resultset.h:226
enum_field_types get_field_type(uint rowIndex=0)
Definition: sql_resultset.h:380
void first()
Definition: sql_resultset.h:113
std::string get_org_column_name(uint rowIndex=0)
Definition: sql_resultset.h:350
longlong getLong(uint columnIndex)
Definition: sql_resultset.h:295
std::string get_table(uint rowIndex=0)
Definition: sql_resultset.h:335
decimal_t getDecimal(uint columnIndex)
Definition: sql_resultset.h:300
bool get_killed_status()
Definition: sql_resultset.h:391
void set_metadata(Field_type ftype)
Definition: sql_resultset.h:324
void absolute(int row)
Definition: sql_resultset.h:110
std::string get_message()
get client message
Definition: sql_resultset.h:268
void set_rows(uint rows)
Set Methods.
Definition: sql_resultset.h:128
void set_killed()
Definition: sql_resultset.h:210
uint num_metarow
Definition: sql_resultset.h:402
uint num_cols
Definition: sql_resultset.h:400
int current_row
Definition: sql_resultset.h:399
unsigned long get_length(uint rowIndex=0)
Definition: sql_resultset.h:355
void set_err_msg(std::string msg)
set sql error message saved during error in last command execution
Definition: sql_resultset.h:199
std::string m_sqlstate
Definition: sql_resultset.h:416
Sql_resultset()
Definition: sql_resultset.h:74
uint sql_errno()
Getting error info.
Definition: sql_resultset.h:278
uint m_server_status
Definition: sql_resultset.h:406
const CHARSET_INFO * m_resultcs
Definition: sql_resultset.h:404
std::string m_err_msg
Definition: sql_resultset.h:415
std::string err_msg()
get sql error message saved during error in last command execution
Definition: sql_resultset.h:285
void set_sqlstate(std::string state)
set sql error state saved during error in last command execution
Definition: sql_resultset.h:207
void last()
Definition: sql_resultset.h:116
void set_charset(const CHARSET_INFO *result_cs)
set resultset charset info
Definition: sql_resultset.h:142
std::string m_message
Definition: sql_resultset.h:412
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:247
uint get_rows()
Get Methods.
Definition: sql_resultset.h:219
void set_cols(uint cols)
Definition: sql_resultset.h:135
uint get_server_status()
get server status.
Definition: sql_resultset.h:240
uint m_sql_errno
Definition: sql_resultset.h:414
void set_message(std::string msg)
set client message
Definition: sql_resultset.h:183
void new_row()
Definition: sql_resultset.cc:130
uint num_rows
Definition: sql_resultset.h:401
unsigned int get_flags(uint rowIndex=0)
Definition: sql_resultset.h:370
unsigned int get_charsetnr(uint rowIndex=0)
Definition: sql_resultset.h:360
void set_affected_rows(ulonglong affected_rows)
set rows affected due to last command execution
Definition: sql_resultset.h:165
ulonglong get_last_insert_id()
get value of the AUTOINCREMENT column for the last INSERT
Definition: sql_resultset.h:261
double getDouble(uint columnIndex)
Definition: sql_resultset.h:305
unsigned int get_decimals(uint rowIndex=0)
Definition: sql_resultset.h:375
uint m_warn_count
Definition: sql_resultset.h:407
std::string get_database(uint rowIndex=0)
Definition: sql_resultset.h:330
bool next()
Definition: sql_resultset.cc:138
bool m_killed
Definition: sql_resultset.h:418
void set_server_status(uint server_status)
set server status.
Definition: sql_resultset.h:149
Fido Client Authentication nullptr
Definition: fido_client_plugin.cc:222
enum_field_types
Column types for MySQL.
Definition: field_types.h:53
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:1052
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:385
Definition: sql_resultset.h:34
unsigned int charsetnr
Definition: sql_resultset.h:41
unsigned int flags
Definition: sql_resultset.h:42
unsigned long length
Definition: sql_resultset.h:40
unsigned int decimals
Definition: sql_resultset.h:43
enum_field_types type
Definition: sql_resultset.h:44
std::string db_name
Definition: sql_resultset.h:35
std::string org_col_name
Definition: sql_resultset.h:39
std::string org_table_name
Definition: sql_resultset.h:37
std::string table_name
Definition: sql_resultset.h:36
std::string col_name
Definition: sql_resultset.h:38
Definition: sql_resultset.h:47
bool is_unsigned
Definition: sql_resultset.h:65
decimal_t v_decimal
Definition: sql_resultset.h:60
Field_value & operator=(const Field_value &other)
Definition: sql_resultset.cc:41
MYSQL_TIME v_time
Definition: sql_resultset.h:61
~Field_value()
Definition: sql_resultset.cc:96
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:62
bool has_ptr
Definition: sql_resultset.h:66
union Field_value::@12 value
size_t v_string_length
Definition: sql_resultset.h:64
longlong v_long
Definition: sql_resultset.h:58
double v_double
Definition: sql_resultset.h:59
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
unsigned int uint
Definition: uca9-dump.cc:75