 |
MySQL
8.0.23
Source Code Documentation
|
Go to the documentation of this file.
42 #ifndef MYSQL_ABI_CHECK
46 #include <sys/types.h>
55 #ifndef my_socket_defined
56 #define my_socket_defined
59 #ifdef WIN32_LEAN_AND_MEAN
62 #define my_socket SOCKET
70 #ifndef MY_COMPILER_INCLUDED
74 #define STDCALL __stdcall
104 #define CLIENT_NET_RETRY_COUNT 1
105 #define CLIENT_NET_READ_TIMEOUT 365 * 24 * 3600
106 #define CLIENT_NET_WRITE_TIMEOUT 365 * 24 * 3600
108 #define IS_PRI_KEY(n) ((n)&PRI_KEY_FLAG)
109 #define IS_NOT_NULL(n) ((n)&NOT_NULL_FLAG)
110 #define IS_BLOB(n) ((n)&BLOB_FLAG)
116 (((t) <= MYSQL_TYPE_INT24 && (t) != MYSQL_TYPE_TIMESTAMP) || \
117 (t) == MYSQL_TYPE_YEAR || (t) == MYSQL_TYPE_NEWDECIMAL)
118 #define IS_LONGDATA(t) ((t) >= MYSQL_TYPE_TINY_BLOB && (t) <= MYSQL_TYPE_STRING)
147 #define MYSQL_COUNT_ERROR (~(uint64_t)0)
150 #define ER_WARN_DATA_TRUNCATED WARN_DATA_TRUNCATED
359 #define MYSQL_RPL_GTID (1 << 16)
363 #define MYSQL_RPL_SKIP_HEARTBEAT (1 << 17)
412 #define mysql_library_init mysql_server_init
413 #define mysql_library_end mysql_server_end
433 unsigned int fieldnr);
453 const char *ca,
const char *capath,
457 const char *passwd,
const char *db);
459 const char *
user,
const char *passwd,
460 const char *db,
unsigned int port,
461 const char *unix_socket,
462 unsigned long clientflag);
472 const char *db,
unsigned int port,
const char *unix_socket,
473 unsigned long clientflag);
489 const char **data,
size_t *
length);
492 const char **data,
size_t *
length);
495 #define LOCAL_INFILE_ERROR_LEN 512
498 MYSQL *
mysql,
int (*local_infile_init)(
void **,
const char *,
void *),
499 int (*local_infile_read)(
void *,
char *,
unsigned int),
500 void (*local_infile_end)(
void *),
501 int (*local_infile_error)(
void *,
char *,
unsigned int),
void *);
525 const void *arg1,
const void *arg2);
544 unsigned long from_length);
546 unsigned long from_length);
742 unsigned int column,
unsigned long offset);
757 unsigned int param_number,
758 const char *data,
unsigned long length);
785 #define MYSQL_NO_DATA 100
786 #define MYSQL_DATA_TRUNCATED 101
788 #define mysql_reload(mysql) mysql_refresh((mysql), REFRESH_GRANT)
790 #define HAVE_MYSQL_REAL_CONNECT
794 const char *
user,
const char *passwd,
796 unsigned long client_flag);
unsigned long * length
Definition: mysql.h:641
Definition: sql_common.h:134
bool STDCALL mysql_thread_init(void)
Definition: libmysql.cc:211
const char * file_name
Length of the 'file_name' or 0
Definition: mysql.h:374
unsigned int protocol
Definition: mysql.h:224
const char *STDCALL mysql_stmt_sqlstate(MYSQL_STMT *stmt)
Definition: libmysql.cc:4227
char last_error[MYSQL_ERRMSG_SIZE]
Definition: mysql.h:696
unsigned int STDCALL mysql_errno(MYSQL *mysql)
Definition: client.cc:8438
uint64_t row_count
Definition: mysql.h:337
MYSQL_BIND * bind
Definition: mysql.h:672
int STDCALL mysql_set_server_option(MYSQL *mysql, enum enum_mysql_set_option option)
Definition: libmysql.cc:844
mysql_enum_shutdown_level
We want levels to be in growing order of hardness (because we use number comparisons).
Definition: mysql_com.h:970
void STDCALL mysql_free_result(MYSQL_RES *result)
Definition: client.cc:1866
@ MYSQL_READ_DEFAULT_FILE
Definition: mysql.h:174
@ MYSQL_STMT_INIT_DONE
Definition: mysql.h:571
unsigned long server_capabilities
Definition: mysql.h:310
This file contains the field type.
int STDCALL mysql_set_character_set(MYSQL *mysql, const char *csname)
Definition: client.cc:8565
@ MYSQL_OPT_ZSTD_COMPRESSION_LEVEL
Definition: mysql.h:212
char * user
Definition: mysql.h:299
char * user
Definition: mysql.h:226
@ MYSQL_OPT_NET_BUFFER_LENGTH
Definition: mysql.h:203
unsigned char bind_result_done
Definition: mysql.h:701
char * unix_socket
Definition: mysql.h:299
char * bind_address
The local address to bind when connecting to remote server.
Definition: mysql.h:240
enum enum_mysql_stmt_state state
Definition: mysql.h:695
bool STDCALL mysql_stmt_send_long_data(MYSQL_STMT *stmt, unsigned int param_number, const char *data, unsigned long length)
void STDCALL mysql_get_character_set_info(MYSQL *mysql, MY_CHARSET_INFO *charset)
Definition: libmysql.cc:969
@ SSL_FIPS_MODE_STRICT
Definition: mysql.h:279
@ MYSQL_SET_CHARSET_DIR
Definition: mysql.h:176
unsigned int catalog_length
Definition: mysql.h:135
unsigned long STDCALL mysql_get_client_version(void)
Definition: libmysql.cc:901
unsigned int state
Definition: mysql.h:284
char * passwd
Definition: mysql.h:299
unsigned long size
GTID set data or an argument for
Definition: mysql.h:390
enum_session_state_type
Type of state change information that the server can include in the Ok packet.
Definition: mysql_com.h:1017
bool STDCALL mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert, const char *ca, const char *capath, const char *cipher)
Definition: client.cc:3255
unsigned int STDCALL mysql_get_proto_info(MYSQL *mysql)
Definition: libmysql.cc:895
bool STDCALL mysql_commit(MYSQL *mysql)
Definition: libmysql.cc:4249
@ MYSQL_SHARED_MEMORY_BASE_NAME
Definition: mysql.h:180
bool STDCALL mysql_stmt_bind_result(MYSQL_STMT *stmt, MYSQL_BIND *bnd)
Definition: libmysql.cc:3594
unsigned int read_timeout
Definition: mysql.h:223
@ MYSQL_OPT_TLS_CIPHERSUITES
Definition: mysql.h:210
MYSQL *STDCALL mysql_init(MYSQL *mysql)
Definition: client.cc:3116
synode_no q[FIFO_SIZE]
Definition: xcom_base.cc:3018
void(* store_param_func)(NET *net, struct MYSQL_BIND *param)
Definition: mysql.h:647
unsigned int charsetnr
Definition: mysql.h:139
int STDCALL mysql_stmt_next_result(MYSQL_STMT *stmt)
Definition: libmysql.cc:4352
@ MYSQL_OPT_LOCAL_INFILE
Definition: mysql.h:178
void * extension
Definition: mysql.h:333
char ** MYSQL_ROW
Definition: mysql.h:144
Definition: m_ctype.h:354
uint64_t STDCALL mysql_insert_id(MYSQL *mysql)
Definition: libmysql.cc:936
unsigned int flags
Definition: mysql.h:137
MYSQL_RES *STDCALL mysql_list_tables(MYSQL *mysql, const char *wild)
Definition: libmysql.cc:724
void * buffer
Definition: mysql.h:643
NET net
Definition: mysql.h:297
char * ssl_cert
Definition: mysql.h:230
char * server_version
Definition: mysql.h:299
enum enum_field_types buffer_type
Definition: mysql.h:656
Definition: sql_common.h:157
unsigned int def_length
Definition: mysql.h:136
enum enum_field_types type
Definition: mysql.h:140
char * host_info
Definition: mysql.h:299
MYSQL_RES *STDCALL mysql_use_result(MYSQL *mysql)
Definition: libmysql.cc:4387
char * ssl_capath
Definition: mysql.h:232
bool update_max_length
Definition: mysql.h:708
enum net_async_status STDCALL mysql_real_query_nonblocking(MYSQL *mysql, const char *query, unsigned long length)
bool STDCALL mysql_stmt_bind_param(MYSQL_STMT *stmt, MYSQL_BIND *bnd)
Definition: libmysql.cc:2423
MYSQL * handle
Definition: mysql.h:342
LIST list
Definition: mysql.h:669
bool STDCALL mysql_eof(MYSQL_RES *res)
Definition: libmysql.cc:903
mysql_status
Definition: mysql.h:253
unsigned int STDCALL mysql_num_fields(MYSQL_RES *res)
Definition: client.cc:8434
void(* fetch_result)(struct MYSQL_BIND *, MYSQL_FIELD *, unsigned char **row)
Definition: mysql.h:648
int STDCALL mysql_shutdown(MYSQL *mysql, enum mysql_enum_shutdown_level shutdown_level)
Definition: libmysql.cc:812
bool free_me
Definition: mysql.h:319
uint64_t rows
Definition: mysql.h:165
void * gtid_set_arg
Definition: mysql.h:387
struct MYSQL_BIND MYSQL_BIND
mysql_ssl_mode
Definition: mysql.h:268
char * table
Definition: mysql.h:123
enum mysql_status status
Definition: mysql.h:317
@ MYSQL_STMT_EXECUTE_DONE
Definition: mysql.h:573
const char *STDCALL mysql_character_set_name(MYSQL *mysql)
Definition: libmysql.cc:965
@ SSL_FIPS_MODE_OFF
Definition: mysql.h:277
@ SSL_MODE_VERIFY_IDENTITY
Definition: mysql.h:273
MYSQL_STMT *STDCALL mysql_stmt_init(MYSQL *mysql)
Definition: libmysql.cc:1368
MYSQL_DATA result
Definition: mysql.h:674
MYSQL_ROWS * data_cursor
Definition: mysql.h:675
unsigned long STDCALL mysql_hex_string(char *to, const char *from, unsigned long from_length)
MYSQL_FIELD * fields
Definition: mysql.h:302
MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_tell(MYSQL_STMT *stmt)
Definition: libmysql.cc:4028
@ MYSQL_OPT_LOAD_DATA_LOCAL_DIR
Definition: mysql.h:213
void mysql_set_local_infile_handler(MYSQL *mysql, int(*local_infile_init)(void **, const char *, void *), int(*local_infile_read)(void *, char *, unsigned int), void(*local_infile_end)(void *), int(*local_infile_error)(void *, char *, unsigned int), void *)
Definition: libmysql.cc:633
char * host
Definition: mysql.h:226
unsigned int org_name_length
Definition: mysql.h:131
enum net_async_status STDCALL mysql_next_result_nonblocking(MYSQL *mysql)
Definition: libmysql.cc:4332
const char *STDCALL mysql_stmt_error(MYSQL_STMT *stmt)
Definition: libmysql.cc:4236
bool error_value
Definition: mysql.h:657
int STDCALL mysql_stmt_fetch_column(MYSQL_STMT *stmt, MYSQL_BIND *bind_arg, unsigned int column, unsigned long offset)
unsigned long length_value
Definition: mysql.h:653
const char *STDCALL mysql_sqlstate(MYSQL *mysql)
Definition: libmysql.cc:938
@ MYSQL_PROTOCOL_TCP
Definition: mysql.h:262
unsigned int name_length
Definition: mysql.h:130
int STDCALL mysql_refresh(MYSQL *mysql, unsigned int refresh_options)
Definition: libmysql.cc:821
enum_resultset_metadata
Definition: mysql_com.h:989
case opt name
Definition: sslopt-case.h:32
char * ssl_cipher
Definition: mysql.h:233
void * local_infile_userdata
Definition: mysql.h:249
bool * is_null
Definition: mysql.h:642
bool STDCALL mysql_autocommit(MYSQL *mysql, bool auto_mode)
Definition: libmysql.cc:4267
unsigned int STDCALL mysql_warning_count(MYSQL *mysql)
Definition: libmysql.cc:942
MYSQL *STDCALL mysql_real_connect(MYSQL *mysql, const char *host, const char *user, const char *passwd, const char *db, unsigned int port, const char *unix_socket, unsigned long clientflag)
@ MYSQL_STMT_FETCH_DONE
Definition: mysql.h:574
bool * unbuffered_fetch_owner
Definition: mysql.h:332
@ MYSQL_REPORT_DATA_TRUNCATION
Definition: mysql.h:184
char * db
Definition: mysql.h:125
@ MYSQL_DEFAULT_AUTH
Definition: mysql.h:187
unsigned long max_allowed_packet
Definition: mysql.h:235
@ MYSQL_OPT_RETRY_COUNT
Definition: mysql.h:207
#define MYSQL_ERRMSG_SIZE
Max length of a error message.
Definition: mysql_com.h:852
uint64_t STDCALL mysql_stmt_num_rows(MYSQL_STMT *stmt)
Definition: libmysql.cc:4057
unsigned int field_count
Definition: mysql.h:312
bool is_unsigned
Definition: mysql.h:658
void STDCALL myodbc_remove_escape(MYSQL *mysql, char *name)
Definition: libmysql.cc:1130
char * org_table
Definition: mysql.h:124
int STDCALL mysql_stmt_prepare(MYSQL_STMT *stmt, const char *query, unsigned long length)
@ MYSQL_OPT_SSL_CA
Definition: mysql.h:191
static const char * key
Definition: suite_stubs.c:14
unsigned int db_length
Definition: mysql.h:134
const char *STDCALL mysql_info(MYSQL *mysql)
Definition: libmysql.cc:944
char * charset_name
Definition: mysql.h:228
unsigned long max_length
Definition: mysql.h:129
void(* local_infile_end)(void *)
Definition: mysql.h:247
unsigned int STDCALL mysql_thread_safe(void)
Definition: libmysql.cc:985
#define SCRAMBLE_LENGTH
Length of random string sent by server on handshake; this is also length of obfuscated password,...
Definition: mysql_com.h:116
struct character_set MY_CHARSET_INFO
void * extension
Definition: mysql.h:141
struct Init_commands_array * init_commands
Definition: mysql.h:227
char * charset_dir
Definition: mysql.h:228
int STDCALL mysql_session_track_get_first(MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length)
Get the first state change information received from the server.
Definition: client.cc:8479
MYSQL_ROWS * data
Definition: mysql.h:163
enum net_async_status STDCALL mysql_send_query_nonblocking(MYSQL *mysql, const char *query, unsigned long length)
MYSQL_FIELD * fields
Definition: mysql.h:338
@ MYSQL_STATUS_STATEMENT_GET_RESULT
Definition: mysql.h:257
void * extension
Definition: mysql.h:661
int(* local_infile_init)(void **, const char *, void *)
Definition: mysql.h:245
@ MYSQL_ENABLE_CLEARTEXT_PLUGIN
Definition: mysql.h:200
int STDCALL mysql_real_query(MYSQL *mysql, const char *q, unsigned long length)
const char * host
Definition: mysqladmin.cc:58
@ MYSQL_SERVER_PUBLIC_KEY
Definition: mysql.h:199
static MYSQL mysql
Definition: mysql.cc:153
const std::string charset("charset")
uint64_t STDCALL mysql_stmt_affected_rows(MYSQL_STMT *stmt)
Definition: libmysql.cc:2221
uint64_t extra_info
Definition: mysql.h:306
const struct MYSQL_METHODS * methods
Definition: mysql.h:343
const char *STDCALL mysql_get_client_info(void)
Definition: libmysql.cc:899
bool bind_param_done
Definition: mysql.h:700
struct CHARSET_INFO * charset
Definition: mysql.h:301
int STDCALL mysql_binlog_fetch(MYSQL *mysql, MYSQL_RPL *rpl)
Fetch one event from the server.
Definition: client.cc:6775
@ MYSQL_OPT_READ_TIMEOUT
Definition: mysql.h:181
@ MYSQL_STATUS_USE_RESULT
Definition: mysql.h:256
enum net_async_status STDCALL mysql_free_result_nonblocking(MYSQL_RES *result)
Frees the memory allocated for a result, set by APIs which would have returned rows.
Definition: client.cc:1837
@ MYSQL_STATUS_GET_RESULT
Definition: mysql.h:255
MYSQL * mysql
Definition: mysql.h:670
@ MYSQL_OPT_WRITE_TIMEOUT
Definition: mysql.h:182
unsigned int STDCALL mysql_stmt_field_count(MYSQL_STMT *stmt)
Definition: libmysql.cc:2230
unsigned long prefetch_rows
Definition: mysql.h:686
@ MYSQL_OPT_CONNECT_ATTR_DELETE
Definition: mysql.h:198
MYSQL_ROWS * data_cursor
Definition: mysql.h:340
@ STMT_ATTR_UPDATE_MAX_LENGTH
Definition: mysql.h:720
unsigned int org_table_length
Definition: mysql.h:133
void STDCALL mysql_server_end(void)
Definition: libmysql.cc:193
int STDCALL mysql_stmt_fetch(MYSQL_STMT *stmt)
Definition: libmysql.cc:3735
char scramble[SCRAMBLE_LENGTH+1]
Definition: mysql.h:323
@ MYSQL_OPT_CONNECT_TIMEOUT
Definition: mysql.h:170
unsigned int MYSQL_FIELD_OFFSET
Definition: mysql.h:145
@ MYSQL_OPT_SSL_KEY
Definition: mysql.h:189
struct MYSQL_DATA * data
Definition: mysql.h:339
char * name
Definition: mysql.h:121
bool STDCALL mysql_stmt_attr_get(MYSQL_STMT *stmt, enum enum_stmt_attr_type attr_type, void *attr)
Definition: libmysql.cc:2059
unsigned int field_count
Definition: mysql.h:347
@ MYSQL_OPT_MAX_ALLOWED_PACKET
Definition: mysql.h:202
unsigned long * lengths
Definition: mysql.h:341
uint64_t affected_rows
Definition: mysql.h:682
MYSQL_ROW STDCALL mysql_fetch_row(MYSQL_RES *result)
Definition: client.cc:7682
enum_stmt_attr_type
Definition: mysql.h:712
const char * comment
Definition: mysql.h:287
struct MEM_ROOT * alloc
Definition: mysql.h:164
unsigned int fields
Definition: mysql.h:166
int STDCALL mysql_select_db(MYSQL *mysql, const char *db)
Definition: client.cc:6830
@ MYSQL_PROTOCOL_SOCKET
Definition: mysql.h:263
get_options & argc
Definition: do_ctype.cc:51
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:77
@ MYSQL_SET_CHARSET_NAME
Definition: mysql.h:177
unsigned int mbminlen
Definition: mysql.h:289
@ MYSQL_OPT_SSL_CRL
Definition: mysql.h:194
int(* local_infile_error)(void *, char *, unsigned int)
Definition: mysql.h:248
MYSQL_RES *STDCALL mysql_stmt_result_metadata(MYSQL_STMT *stmt)
Definition: libmysql.cc:1658
bool send_types_to_server
Definition: mysql.h:699
mysql_option
Definition: mysql.h:169
@ MYSQL_OPT_SSL_CRLPATH
Definition: mysql.h:195
unsigned int mbmaxlen
Definition: mysql.h:290
const char *STDCALL mysql_get_ssl_cipher(MYSQL *mysql)
Definition: client.cc:3321
void STDCALL mysql_data_seek(MYSQL_RES *result, uint64_t offset)
Definition: libmysql.cc:675
struct MYSQL_RPL MYSQL_RPL
Struct for information about a replication stream.
size_t file_name_length
Definition: mysql.h:373
const char * csname
Definition: mysql.h:285
@ MYSQL_OPT_SSL_FIPS_MODE
Definition: mysql.h:209
MYSQL_BIND * params
Definition: mysql.h:671
@ MYSQL_OPT_CONNECT_ATTR_RESET
Definition: mysql.h:196
enum_field_types
Column types for MySQL.
Definition: field_types.h:57
char * mysql_unix_port
Definition: client.cc:198
struct MYSQL_ROWS * next
Definition: mysql.h:153
void STDCALL mysql_thread_end(void)
Definition: libmysql.cc:213
Definition: init_commands_array.h:25
@ MYSQL_STMT_PREPARE_DONE
Definition: mysql.h:572
@ MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS
Definition: mysql.h:201
unsigned long packet_length
Definition: mysql.h:308
@ MYSQL_OPT_CONNECT_ATTR_ADD
Definition: mysql.h:197
enum net_async_status STDCALL mysql_store_result_nonblocking(MYSQL *mysql, MYSQL_RES **result)
This API reads all result set sent by server in an asynchronous way.
Definition: client.cc:7550
MYSQL_FIELD *STDCALL mysql_fetch_field(MYSQL_RES *result)
Definition: libmysql.cc:665
int STDCALL mysql_stmt_execute(MYSQL_STMT *stmt)
Definition: libmysql.cc:2185
unsigned long client_flag
Definition: mysql.h:310
static in_port_t port
Definition: testapp.c:33
void STDCALL mysql_close(MYSQL *sock)
Definition: client.cc:6987
enum net_async_status STDCALL mysql_fetch_row_nonblocking(MYSQL_RES *res, MYSQL_ROW *row)
Reads next row of a result set in an asynchronous way.
Definition: client.cc:7732
unsigned int flags
Server ID to use when identifying
Definition: mysql.h:379
unsigned int field_count
Definition: mysql.h:694
@ SSL_MODE_VERIFY_CA
Definition: mysql.h:272
@ STMT_ATTR_PREFETCH_ROWS
Definition: mysql.h:730
int STDCALL mysql_send_query(MYSQL *mysql, const char *q, unsigned long length)
Definition: mysql_com.h:879
unsigned int server_status
Definition: mysql.h:313
unsigned long STDCALL mysql_real_escape_string_quote(MYSQL *mysql, char *to, const char *from, unsigned long length, char quote)
int STDCALL mysql_options(MYSQL *mysql, enum mysql_option option, const void *arg)
Definition: client.cc:7853
unsigned int protocol_version
Definition: mysql.h:311
unsigned long length
Definition: mysql.h:128
const char * dir
Definition: mysql.h:288
bool unbuffered_fetch_cancelled
Definition: mysql.h:703
@ MYSQL_PROTOCOL_MEMORY
Definition: mysql.h:265
@ MYSQL_OPT_SSL_MODE
Definition: mysql.h:205
unsigned int server_status
Definition: mysql.h:691
bool unbuffered_fetch_cancelled
Definition: mysql.h:350
struct MYSQL_STMT MYSQL_STMT
unsigned int write_timeout
Definition: mysql.h:223
unsigned long length
Definition: mysql.h:155
unsigned char * row_ptr
Definition: mysql.h:646
MYSQL_ROWS * MYSQL_ROW_OFFSET
Definition: mysql.h:158
char * user
Definition: mysqladmin.cc:59
enum net_async_status STDCALL mysql_select_db_nonblocking(MYSQL *mysql, const char *db, bool *error)
unsigned long client_flag
Definition: mysql.h:225
int STDCALL mysql_kill(MYSQL *mysql, unsigned long pid)
@ MYSQL_OPT_PROTOCOL
Definition: mysql.h:179
struct st_mysql_options_extention * extension
Definition: mysql.h:250
bool named_pipe
Definition: mysql.h:236
bool compress
Definition: mysql.h:236
enum_mysql_stmt_state
Definition: mysql.h:570
@ MYSQL_OPT_OPTIONAL_RESULTSET_METADATA
Definition: mysql.h:208
const char *STDCALL mysql_get_server_info(MYSQL *mysql)
Definition: libmysql.cc:887
@ SSL_FIPS_MODE_ON
Definition: mysql.h:278
@ MYSQL_OPT_BIND
Definition: mysql.h:188
MYSQL_ROW data
Definition: mysql.h:154
int STDCALL mysql_next_result(MYSQL *mysql)
Definition: libmysql.cc:4296
uint64_t insert_id
Definition: mysql.h:683
struct MYSQL_FIELD MYSQL_FIELD
unsigned int STDCALL mysql_stmt_errno(MYSQL_STMT *stmt)
Definition: libmysql.cc:4222
static char * query
Definition: myisam_ftdump.cc:44
struct MEM_ROOT * field_alloc
Definition: mysql.h:303
MYSQL_FIELD * fields
Definition: mysql.h:673
uint64_t affected_rows
Definition: mysql.h:304
unsigned int server_id
Position in the binary log to
Definition: mysql.h:377
MYSQL_ROW current_row
Definition: mysql.h:345
struct MYSQL_RES MYSQL_RES
unsigned int param_number
Definition: mysql.h:654
void mysql_set_local_infile_default(MYSQL *mysql)
Definition: libmysql.cc:645
unsigned long thread_id
Definition: mysql.h:307
uint64_t my_ulonglong
Definition: mysql.h:53
unsigned int mysql_port
Definition: client.cc:197
bool STDCALL mysql_rollback(MYSQL *mysql)
Definition: libmysql.cc:4258
char * host
Definition: mysql.h:299
void STDCALL mysql_binlog_close(MYSQL *mysql, MYSQL_RPL *rpl)
Close replication stream.
Definition: client.cc:6815
unsigned int port
Definition: mysql.h:224
MYSQL_RES *STDCALL mysql_store_result(MYSQL *mysql)
Definition: client.cc:7491
MYSQL_FIELD *STDCALL mysql_fetch_fields(MYSQL_RES *res)
Definition: libmysql.cc:910
mysql_ssl_fips_mode
Definition: mysql.h:276
unsigned long STDCALL mysql_stmt_param_count(MYSQL_STMT *stmt)
Definition: libmysql.cc:2212
bool reconnect
Definition: mysql.h:320
unsigned long STDCALL mysql_real_escape_string(MYSQL *mysql, char *to, const char *from, unsigned long length)
unsigned long STDCALL mysql_escape_string(char *to, const char *from, unsigned long from_length)
@ MYSQL_OPT_RECONNECT
Definition: mysql.h:185
bool STDCALL mysql_read_query_result(MYSQL *mysql)
Definition: libmysql.cc:4391
char * info
Definition: mysql.h:300
MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_seek(MYSQL_STMT *stmt, MYSQL_ROW_OFFSET offset)
Definition: libmysql.cc:4015
bool report_data_truncation
Definition: mysql.h:242
void * thd
Definition: mysql.h:327
const char *STDCALL mysql_stat(MYSQL *mysql)
Definition: libmysql.cc:871
@ MYSQL_PROTOCOL_DEFAULT
Definition: mysql.h:261
int my_socket
Definition: mysql.h:64
int STDCALL mysql_reset_connection(MYSQL *mysql)
Definition: libmysql.cc:4395
MYSQL_ROW_OFFSET STDCALL mysql_row_seek(MYSQL_RES *result, MYSQL_ROW_OFFSET offset)
Definition: libmysql.cc:691
@ MYSQL_OPT_NAMED_PIPE
Definition: mysql.h:172
@ MYSQL_PLUGIN_DIR
Definition: mysql.h:186
bool long_data_used
Definition: mysql.h:659
@ MYSQL_INIT_COMMAND
Definition: mysql.h:173
LIST * stmts
Definition: mysql.h:325
unsigned long STDCALL mysql_thread_id(MYSQL *mysql)
Definition: libmysql.cc:955
void STDCALL mysql_stmt_data_seek(MYSQL_STMT *stmt, uint64_t offset)
Definition: libmysql.cc:4038
void(* skip_result)(struct MYSQL_BIND *, MYSQL_FIELD *, unsigned char **row)
Definition: mysql.h:649
unsigned int current_field
Definition: mysql.h:347
unsigned int table_length
Definition: mysql.h:132
int STDCALL mysql_session_track_get_next(MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length)
Get the subsequent state change information received from the server.
Definition: client.cc:8506
MYSQL_FIELD_OFFSET STDCALL mysql_field_tell(MYSQL_RES *res)
Definition: libmysql.cc:918
unsigned char * connector_fd
Definition: mysql.h:298
net_async_status
Definition: plugin_auth_common.h:130
unsigned int connect_timeout
Definition: mysql.h:223
#define SQLSTATE_LENGTH
Definition: mysql_com.h:74
void * extension
Definition: mysql.h:352
uint64_t insert_id
Definition: mysql.h:305
uint64_t STDCALL mysql_affected_rows(MYSQL *mysql)
Definition: libmysql.cc:932
@ MYSQL_OPT_COMPRESSION_ALGORITHMS
Definition: mysql.h:211
char * def
Definition: mysql.h:127
enum enum_resultset_metadata metadata
Definition: mysql.h:351
unsigned int pack_length
Definition: mysql.h:655
@ SSL_MODE_PREFERRED
Definition: mysql.h:270
unsigned int warning_count
Definition: mysql.h:315
struct MEM_ROOT * field_alloc
Definition: mysql.h:346
char sqlstate[SQLSTATE_LENGTH+1]
Definition: mysql.h:697
uint64_t STDCALL mysql_stmt_insert_id(MYSQL_STMT *stmt)
Definition: libmysql.cc:2250
unsigned int last_errno
Definition: mysql.h:692
@ MYSQL_OPT_SSL_CIPHER
Definition: mysql.h:193
@ SSL_MODE_DISABLED
Definition: mysql.h:269
bool eof
Definition: mysql.h:348
MYSQL_RES *STDCALL mysql_list_processes(MYSQL *mysql)
Definition: libmysql.cc:795
char * shared_memory_base_name
Definition: mysql.h:234
bool STDCALL mysql_bind_param(MYSQL *mysql, unsigned n_params, MYSQL_BIND *binds, const char **names)
Definition: libmysql.cc:2456
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:75
int STDCALL mysql_stmt_store_result(MYSQL_STMT *stmt)
Definition: libmysql.cc:3918
int STDCALL mysql_server_init(int argc, char **argv, char **groups)
Definition: libmysql.cc:128
char * unix_socket
Definition: mysql.h:226
unsigned long *STDCALL mysql_fetch_lengths(MYSQL_RES *result)
Definition: client.cc:7807
void STDCALL mysql_debug(const char *debug)
Definition: libmysql.cc:238
MYSQL_FIELD_OFFSET STDCALL mysql_field_seek(MYSQL_RES *result, MYSQL_FIELD_OFFSET offset)
Definition: libmysql.cc:699
uint64_t STDCALL mysql_num_rows(MYSQL_RES *res)
Definition: client.cc:8432
char * ssl_key
Definition: mysql.h:229
bool STDCALL mysql_change_user(MYSQL *mysql, const char *user, const char *passwd, const char *db)
Definition: libmysql.cc:266
int STDCALL mysql_dump_debug_info(MYSQL *mysql)
Definition: libmysql.cc:852
@ STMT_ATTR_CURSOR_TYPE
Definition: mysql.h:725
@ MYSQL_PROTOCOL_PIPE
Definition: mysql.h:264
struct MYSQL_DATA MYSQL_DATA
@ MYSQL_OPT_TLS_VERSION
Definition: mysql.h:204
@ MYSQL_STATUS_READY
Definition: mysql.h:254
static MYSQL * sock
Definition: mysqlcheck.cc:55
char * db
Definition: mysql.h:226
int(* read_row_func)(struct MYSQL_STMT *stmt, unsigned char **row)
Definition: mysql.h:680
MYSQL_RES *STDCALL mysql_stmt_param_metadata(MYSQL_STMT *stmt)
Definition: libmysql.cc:1700
@ MYSQL_READ_DEFAULT_GROUP
Definition: mysql.h:175
size_t gtid_set_encoded_size
Flags, e.g.
Definition: mysql.h:382
char * db
Definition: mysql.h:300
bool STDCALL mysql_stmt_reset(MYSQL_STMT *stmt)
Definition: libmysql.cc:4205
const char *STDCALL mysql_get_host_info(MYSQL *mysql)
Definition: libmysql.cc:891
@ MYSQL_OPT_GET_SERVER_PUBLIC_KEY
Definition: mysql.h:206
void(* fix_gtid_set)(struct MYSQL_RPL *rpl, unsigned char *packet_gtid_set)
Callback function which is called
Definition: mysql.h:386
struct MEM_ROOT * mem_root
Definition: mysql.h:668
@ SSL_MODE_REQUIRED
Definition: mysql.h:271
unsigned int param_count
Definition: mysql.h:693
@ MYSQL_OPT_SSL_CAPATH
Definition: mysql.h:192
enum enum_resultset_metadata resultset_metadata
Definition: mysql.h:318
unsigned int STDCALL mysql_field_count(MYSQL *mysql)
Definition: libmysql.cc:928
int(* local_infile_read)(void *, char *, unsigned int)
Definition: mysql.h:246
bool * error
Definition: mysql.h:645
unsigned long offset
Definition: mysql.h:652
int STDCALL mysql_get_option(MYSQL *mysql, enum mysql_option option, const void *arg)
Return the current values for the options settable through mysql_options()
Definition: client.cc:8177
char * org_name
Definition: mysql.h:122
MYSQL_FIELD *STDCALL mysql_fetch_field_direct(MYSQL_RES *res, unsigned int fieldnr)
Definition: libmysql.cc:905
const unsigned char * buffer
Size of the packet returned by
Definition: mysql.h:392
bool STDCALL mysql_stmt_attr_set(MYSQL_STMT *stmt, enum enum_stmt_attr_type attr_type, const void *attr)
Definition: libmysql.cc:2029
#define STDCALL
Definition: mysql.h:72
mysql_protocol_type
Definition: mysql.h:260
enum_mysql_set_option
options for mysql_options()
Definition: mysql_com.h:1004
unsigned int server_language
Definition: mysql.h:314
type
Definition: base.h:36
unsigned long buffer_length
Definition: mysql.h:651
MYSQL_RES *STDCALL mysql_list_dbs(MYSQL *mysql, const char *wild)
Definition: libmysql.cc:710
int STDCALL mysql_binlog_open(MYSQL *mysql, MYSQL_RPL *rpl)
Open a new replication stream.
Definition: client.cc:6648
struct MYSQL_STMT_EXT * extension
Definition: mysql.h:709
unsigned long stmt_id
Definition: mysql.h:684
unsigned int number
Definition: mysql.h:283
char * password
Definition: mysql.h:226
MYSQL_RES *STDCALL mysql_list_fields(MYSQL *mysql, const char *table, const char *wild)
Definition: libmysql.cc:758
int STDCALL mysql_query(MYSQL *mysql, const char *q)
Definition: libmysql.cc:657
char * my_cnf_file
Definition: mysql.h:228
char * catalog
Definition: mysql.h:126
struct st_mysql_options options
Definition: mysql.h:316
const struct MYSQL_METHODS * methods
Definition: mysql.h:326
struct MYSQL_ROWS MYSQL_ROWS
Struct for information about a replication stream.
Definition: mysql.h:372
char * my_cnf_group
Definition: mysql.h:228
unsigned long flags
Definition: mysql.h:685
MYSQL_ROW row
Definition: mysql.h:344
@ MYSQL_OPT_USE_RESULT
Definition: mysql.h:183
enum enum_resultset_metadata STDCALL mysql_result_metadata(MYSQL_RES *result)
Definition: libmysql.cc:922
bool STDCALL mysql_stmt_free_result(MYSQL_STMT *stmt)
Definition: libmysql.cc:4126
@ MYSQL_OPT_COMPRESS
Definition: mysql.h:171
char * ssl_ca
Definition: mysql.h:231
@ MYSQL_OPT_SSL_CERT
Definition: mysql.h:190
unsigned int port
Definition: mysql.h:309
Definition: libmysql.cc:106
bool STDCALL mysql_stmt_close(MYSQL_STMT *stmt)
Definition: libmysql.cc:4150
void STDCALL mysql_reset_server_public_key(void)
Definition: client_authentication.cc:844
const char * name
Definition: mysql.h:286
bool is_null_value
Definition: mysql.h:660
char * argv[]
Definition: do_ctype.cc:45
unsigned long STDCALL mysql_get_server_version(MYSQL *mysql)
Definition: client.cc:8542
MYSQL_ROW_OFFSET STDCALL mysql_row_tell(MYSQL_RES *res)
Definition: libmysql.cc:914
static char * dns_srv_name
Definition: mysql.cc:183
int STDCALL mysql_options4(MYSQL *mysql, enum mysql_option option, const void *arg1, const void *arg2)
Definition: client.cc:8362
uint64_t start_position
Filename of the binary log to read.
Definition: mysql.h:375
MYSQL *STDCALL mysql_real_connect_dns_srv(MYSQL *mysql, const char *dns_srv_name, const char *user, const char *passwd, const char *db, unsigned long client_flag)
Connect to a server using a DNS SRV name.
Definition: dns_srv.cc:161
bool STDCALL mysql_more_results(MYSQL *mysql)
Definition: libmysql.cc:4284
int STDCALL mysql_ping(MYSQL *mysql)
Definition: libmysql.cc:878
unsigned int decimals
Definition: mysql.h:138
const char *STDCALL mysql_error(MYSQL *mysql)
Definition: client.cc:8442
enum net_async_status STDCALL mysql_real_connect_nonblocking(MYSQL *mysql, const char *host, const char *user, const char *passwd, const char *db, unsigned int port, const char *unix_socket, unsigned long clientflag)