MySQL 26.7.0
Source Code Documentation
mysql.h
Go to the documentation of this file.
1/* Copyright (c) 2000, 2026, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 Without limiting anything contained in the foregoing, this file,
16 which is part of C Driver for MySQL (Connector/C), is also subject to the
17 Universal FOSS Exception, version 1.0, a copy of which can be found at
18 http://oss.oracle.com/licenses/universal-foss-exception.
19
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License, version 2.0, for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, write to the Free Software
27 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
28
29/**
30 @file include/mysql.h
31 This file defines the client API to MySQL and also the ABI of the
32 dynamically linked libmysqlclient.
33
34 The ABI should never be changed in a released product of MySQL,
35 thus you need to take great care when changing the file. In case
36 the file is changed so the ABI is broken, you must also update
37 the SHARED_LIB_MAJOR_VERSION in cmake/mysql_version.cmake
38*/
39
40#ifndef _mysql_h
41#define _mysql_h
42
43#ifndef MYSQL_ABI_CHECK
44#include <stdbool.h>
45#include <stddef.h>
46#include <stdint.h>
47#include <sys/types.h>
48#endif
49
50// Legacy definition for the benefit of old code. Use uint64_t in new code.
51// If you get warnings from printf, use the PRIu64 macro, or, if you need
52// compatibility with older versions of the client library, cast
53// before printing.
54typedef uint64_t my_ulonglong;
55
56#ifndef my_socket_defined
57#define my_socket_defined
58#if defined(_WIN32) && !defined(MYSQL_ABI_CHECK)
59#include <windows.h>
60#ifdef WIN32_LEAN_AND_MEAN
61#include <winsock2.h>
62#endif
63#define my_socket SOCKET
64#else
65typedef int my_socket;
66#endif /* _WIN32 && ! MYSQL_ABI_CHECK */
67#endif /* my_socket_defined */
68
69// Small extra definition to avoid pulling in my_compiler.h in client code.
70// IWYU pragma: no_include "my_compiler.h"
71#ifndef MY_COMPILER_INCLUDED
72#if !defined(_WIN32) || defined(MYSQL_ABI_CHECK)
73#define STDCALL
74#else
75#define STDCALL __stdcall
76#endif
77#endif /* MY_COMPILER_INCLUDED */
78
79#include "field_types.h"
80#include "my_list.h"
81#include "mysql_com.h"
82
83/* Include declarations of plug-in API */
84#include "mysql/client_plugin.h" // IWYU pragma: keep
85
86/*
87 The client should be able to know which version it is compiled against,
88 even if mysql.h doesn't use this information directly.
89*/
90#include "mysql_version.h" // IWYU pragma: keep
91
92// MYSQL_TIME is part of our public API.
93#include "mysql_time.h" // IWYU pragma: keep
94
95// The error messages are part of our public API.
96#include "errmsg.h" // IWYU pragma: keep
97
98#ifdef __cplusplus
99extern "C" {
100#endif
101
102extern unsigned int mysql_port;
103extern char *mysql_unix_port;
104
105#define CLIENT_NET_RETRY_COUNT 1 /* Retry count */
106#define CLIENT_NET_READ_TIMEOUT 365 * 24 * 3600 /* Timeout on read */
107#define CLIENT_NET_WRITE_TIMEOUT 365 * 24 * 3600 /* Timeout on write */
108
109#define IS_PRI_KEY(n) ((n)&PRI_KEY_FLAG)
110#define IS_NOT_NULL(n) ((n)&NOT_NULL_FLAG)
111#define IS_BLOB(n) ((n)&BLOB_FLAG)
112/**
113 Returns true if the value is a number which does not need quotes for
114 the sql_lex.cc parser to parse correctly.
115*/
116#define IS_NUM(t) \
117 (((t) <= MYSQL_TYPE_INT24 && (t) != MYSQL_TYPE_TIMESTAMP) || \
118 (t) == MYSQL_TYPE_YEAR || (t) == MYSQL_TYPE_NEWDECIMAL)
119#define IS_LONGDATA(t) ((t) >= MYSQL_TYPE_TINY_BLOB && (t) <= MYSQL_TYPE_STRING)
120
121typedef struct MYSQL_FIELD {
122 char *name; /* Name of column */
123 char *org_name; /* Original column name, if an alias */
124 char *table; /* Table of column if column was a field */
125 char *org_table; /* Org table name, if table was an alias */
126 char *db; /* Database for table */
127 char *catalog; /* Catalog for table */
128 char *def; /* Default value (set by mysql_list_fields) */
129 unsigned long length; /* Width of column (create length) */
130 unsigned long max_length; /* Max width for selected set */
131 unsigned int name_length;
132 unsigned int org_name_length;
133 unsigned int table_length;
134 unsigned int org_table_length;
135 unsigned int db_length;
136 unsigned int catalog_length;
137 unsigned int def_length;
138 unsigned int flags; /* Div flags */
139 unsigned int decimals; /* Number of decimals in field */
140 unsigned int charsetnr; /* Character set */
141 enum enum_field_types type; /* Type of field. See mysql_com.h for types */
144
145typedef char **MYSQL_ROW; /* return data as array of strings */
146typedef unsigned int MYSQL_FIELD_OFFSET; /* offset to current field */
147
148#define MYSQL_COUNT_ERROR (~(uint64_t)0)
149
150/* backward compatibility define - to be removed eventually */
151#define ER_WARN_DATA_TRUNCATED WARN_DATA_TRUNCATED
152
153typedef struct MYSQL_ROWS {
154 struct MYSQL_ROWS *next; /* list of rows */
156 unsigned long length;
158
159typedef MYSQL_ROWS *MYSQL_ROW_OFFSET; /* offset to current row */
160
161struct MEM_ROOT;
162
163typedef struct MYSQL_DATA {
166 uint64_t rows;
167 unsigned int fields;
169
222
223/**
224 @todo remove the "extension", move st_mysql_options completely
225 out of mysql.h
226*/
228
231 unsigned int port, protocol;
232 unsigned long client_flag;
236 char *ssl_key; /* PEM key file */
237 char *ssl_cert; /* PEM cert file */
238 char *ssl_ca; /* PEM CA file */
239 char *ssl_capath; /* PEM directory of CA-s? */
240 char *ssl_cipher; /* cipher to use */
242 unsigned long max_allowed_packet;
244 /**
245 The local address to bind when connecting to remote server.
246 */
248 /* 0 - never report, 1 - always report (default) */
250
251 /* function pointers for local infile support */
252 int (*local_infile_init)(void **, const char *, void *);
253 int (*local_infile_read)(void *, char *, unsigned int);
254 void (*local_infile_end)(void *);
255 int (*local_infile_error)(void *, char *, unsigned int);
258};
259
266
274
282
288
289typedef struct character_set {
290 unsigned int number; /* character set number */
291 unsigned int state; /* character set state */
292 const char *csname; /* character set name */
293 const char *name; /* collation name */
294 const char *comment; /* comment */
295 const char *dir; /* character set directory */
296 unsigned int mbminlen; /* min. length for multibyte strings */
297 unsigned int mbmaxlen; /* max. length for multibyte strings */
299
300struct MYSQL_METHODS;
301struct MYSQL_STMT;
302
303typedef struct MYSQL {
304 NET net; /* Communication parameters */
305 unsigned char *connector_fd; /* ConnectorFd for SSL */
307 char *info, *db;
312 uint64_t insert_id; /* id if insert on table with NEXTNR */
313 uint64_t extra_info; /* Not used */
314 unsigned long thread_id; /* Id for connection in server */
315 unsigned long packet_length;
316 unsigned int port;
318 unsigned int protocol_version;
319 unsigned int field_count;
320 unsigned int server_status;
321 unsigned int server_language;
322 unsigned int warning_count;
326 bool free_me; /* If free in mysql_close */
327 bool reconnect; /* set to 1 if automatic reconnect */
328
329 /* session-wide random string */
331
332 LIST *stmts; /* list of all statements */
333 const struct MYSQL_METHODS *methods;
334 void *thd;
335 /*
336 Points to boolean flag in MYSQL_RES or MYSQL_STMT. We set this flag
337 from mysql_stmt_close if close had to cancel result set of this object.
338 */
342
343typedef struct MYSQL_RES {
344 uint64_t row_count;
348 unsigned long *lengths; /* column lengths of current row */
349 MYSQL *handle; /* for unbuffered reads */
350 const struct MYSQL_METHODS *methods;
351 MYSQL_ROW row; /* If unbuffered read */
352 MYSQL_ROW current_row; /* buffer to current row */
355 bool eof; /* Used by mysql_fetch_row */
356 /* mysql_stmt_close() had to cancel this result */
361
362/**
363 Flag to indicate that COM_BINLOG_DUMP_GTID should
364 be used rather than COM_BINLOG_DUMP in the @sa mysql_binlog_open().
365*/
366#define MYSQL_RPL_GTID (1 << 16)
367/**
368 Skip HEARBEAT events in the @sa mysql_binlog_fetch().
369*/
370#define MYSQL_RPL_SKIP_HEARTBEAT (1 << 17)
371
372/**
373 Flag to indicate that the heartbeat_event being generated
374 is using the class Heartbeat_event_v2
375*/
376#define USE_HEARTBEAT_EVENT_V2 (1 << 1)
377
378/**
379 Flag to indicate that tagged GTIDS will be skipped in COM_BINLOG_DUMP_GTIDS
380*/
381#define MYSQL_RPL_SKIP_TAGGED_GTIDS (1 << 2)
382
383/**
384 Tagged GTIDS are supported starting from below version of MySQL
385*/
386#define MYSQL_TAGGED_GTIDS_VERSION_SUPPORT 80300
387
388/**
389 Struct for information about a replication stream.
390
391 @sa mysql_binlog_open()
392 @sa mysql_binlog_fetch()
393 @sa mysql_binlog_close()
394*/
395typedef struct MYSQL_RPL {
396 size_t file_name_length; /** Length of the 'file_name' or 0 */
397 const char *file_name; /** Filename of the binary log to read */
398 uint64_t start_position; /** Position in the binary log to */
399 /* start reading from */
400 unsigned int server_id; /** Server ID to use when identifying */
401 /* with the master */
402 unsigned int flags; /** Flags, e.g. MYSQL_RPL_GTID */
403
404 /** Size of gtid set data */
406 /** Callback function which is called */
407 /* from @sa mysql_binlog_open() to */
408 /* fill command packet gtid set */
409 void (*fix_gtid_set)(struct MYSQL_RPL *rpl, unsigned char *packet_gtid_set);
410 void *gtid_set_arg; /** GTID set data or an argument for */
411 /* fix_gtid_set() callback function */
412
413 unsigned long size; /** Size of the packet returned by */
414 /* mysql_binlog_fetch() */
415 const unsigned char *buffer; /** Pointer to returned data */
417
418/*
419 Set up and bring down the server; to ensure that applications will
420 work when linked against either the standard client library or the
421 embedded server library, these functions should be called.
422*/
423int STDCALL mysql_server_init(int argc, char **argv, char **groups);
424void STDCALL mysql_server_end(void);
425
426/*
427 mysql_server_init/end need to be called when using libmysqld or
428 libmysqlclient (exactly, mysql_server_init() is called by mysql_init() so
429 you don't need to call it explicitly; but you need to call
430 mysql_server_end() to free memory). The names are a bit misleading
431 (mysql_SERVER* to be used when using libmysqlCLIENT). So we add more general
432 names which suit well whether you're using libmysqld or libmysqlclient. We
433 intend to promote these aliases over the mysql_server* ones.
434*/
435#define mysql_library_init mysql_server_init
436#define mysql_library_end mysql_server_end
437
438/*
439 Set up and bring down a thread; these function should be called
440 for each thread in an application which opens at least one MySQL
441 connection. All uses of the connection(s) should be between these
442 function calls.
443*/
444bool STDCALL mysql_thread_init(void);
445void STDCALL mysql_thread_end(void);
446
447/*
448 Functions to get information from the MYSQL and MYSQL_RES structures
449 Should definitely be used if one uses shared libraries.
450*/
451
452uint64_t STDCALL mysql_num_rows(MYSQL_RES *res);
453unsigned int STDCALL mysql_num_fields(MYSQL_RES *res);
454bool STDCALL mysql_eof(MYSQL_RES *res);
456 unsigned int fieldnr);
461
462unsigned int STDCALL mysql_field_count(MYSQL *mysql);
465unsigned int STDCALL mysql_errno(MYSQL *mysql);
466const char *STDCALL mysql_error(MYSQL *mysql);
467const char *STDCALL mysql_sqlstate(MYSQL *mysql);
469const char *STDCALL mysql_info(MYSQL *mysql);
470unsigned long STDCALL mysql_thread_id(MYSQL *mysql);
472int STDCALL mysql_set_character_set(MYSQL *mysql, const char *csname);
473
475bool STDCALL mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert,
476 const char *ca, const char *capath,
477 const char *cipher);
480void *STDCALL mysql_get_ssl_session_data(MYSQL *mysql, unsigned int n_ticket,
481 unsigned int *out_len);
483bool STDCALL mysql_change_user(MYSQL *mysql, const char *user,
484 const char *passwd, const char *db);
486 const char *user, const char *passwd,
487 const char *db, unsigned int port,
488 const char *unix_socket,
489 unsigned long clientflag);
490int STDCALL mysql_select_db(MYSQL *mysql, const char *db);
491int STDCALL mysql_query(MYSQL *mysql, const char *q);
492int STDCALL mysql_send_query(MYSQL *mysql, const char *q, unsigned long length);
493int STDCALL mysql_real_query(MYSQL *mysql, const char *q, unsigned long length);
496
498 MYSQL *mysql, const char *host, const char *user, const char *passwd,
499 const char *db, unsigned int port, const char *unix_socket,
500 unsigned long clientflag);
502 MYSQL *mysql, const char *query, unsigned long length);
504 MYSQL *mysql, const char *query, unsigned long length);
509 const char *db,
510 bool *error);
513
516 const char **data, size_t *length);
519 const char **data, size_t *length);
520/* local infile support */
521
522#define LOCAL_INFILE_ERROR_LEN 512
523
525 MYSQL *mysql, int (*local_infile_init)(void **, const char *, void *),
526 int (*local_infile_read)(void *, char *, unsigned int),
527 void (*local_infile_end)(void *),
528 int (*local_infile_error)(void *, char *, unsigned int), void *);
529
532 enum mysql_enum_shutdown_level shutdown_level);
534int STDCALL mysql_refresh(MYSQL *mysql, unsigned int refresh_options);
535int STDCALL mysql_kill(MYSQL *mysql, unsigned long pid);
537 enum enum_mysql_set_option option);
539const char *STDCALL mysql_stat(MYSQL *mysql);
541const char *STDCALL mysql_get_client_info(void);
542unsigned long STDCALL mysql_get_client_version(void);
546MYSQL_RES *STDCALL mysql_list_dbs(MYSQL *mysql, const char *wild);
547MYSQL_RES *STDCALL mysql_list_tables(MYSQL *mysql, const char *wild);
550 const void *arg);
552 const void *arg1, const void *arg2);
554 const void *arg);
557void STDCALL mysql_data_seek(MYSQL_RES *result, uint64_t offset);
559 MYSQL_ROW_OFFSET offset);
561 MYSQL_FIELD_OFFSET offset);
564 MYSQL_ROW *row);
565
569 const char *wild);
570unsigned long STDCALL mysql_escape_string(char *to, const char *from,
571 unsigned long from_length);
572unsigned long STDCALL mysql_hex_string(char *to, const char *from,
573 unsigned long from_length);
575 const char *from,
576 unsigned long length);
578 const char *from,
579 unsigned long length,
580 char quote);
581void STDCALL mysql_debug(const char *debug);
583unsigned int STDCALL mysql_thread_safe(void);
587
591
592/*
593 The following definitions are added for the enhanced
594 client-server protocol
595*/
596
597/* statement state */
604
605/*
606 This structure is used to define bind information, and
607 internally by the client library.
608 Public members with their descriptions are listed below
609 (conventionally `On input' refers to the binds given to
610 mysql_stmt_bind_param, `On output' refers to the binds given
611 to mysql_stmt_bind_result):
612
613 buffer_type - One of the MYSQL_* types, used to describe
614 the host language type of buffer.
615 On output: if column type is different from
616 buffer_type, column value is automatically converted
617 to buffer_type before it is stored in the buffer.
618 buffer - On input: points to the buffer with input data.
619 On output: points to the buffer capable to store
620 output data.
621 The type of memory pointed by buffer must correspond
622 to buffer_type. See the correspondence table in
623 the comment to mysql_stmt_bind_param.
624
625 The two above members are mandatory for any kind of bind.
626
627 buffer_length - the length of the buffer. You don't have to set
628 it for any fixed length buffer: float, double,
629 int, etc. It must be set however for variable-length
630 types, such as BLOBs or STRINGs.
631
632 length - On input: in case when lengths of input values
633 are different for each execute, you can set this to
634 point at a variable containing value length. This
635 way the value length can be different in each execute.
636 If length is not NULL, buffer_length is not used.
637 Note, length can even point at buffer_length if
638 you keep bind structures around while fetching:
639 this way you can change buffer_length before
640 each execution, everything will work ok.
641 On output: if length is set, mysql_stmt_fetch will
642 write column length into it.
643
644 is_null - On input: points to a boolean variable that should
645 be set to TRUE for NULL values.
646 This member is useful only if your data may be
647 NULL in some but not all cases.
648 If your data is never NULL, is_null should be set to 0.
649 If your data is always NULL, set buffer_type
650 to MYSQL_TYPE_NULL, and is_null will not be used.
651
652 is_unsigned - On input: used to signify that values provided for one
653 of numeric types are unsigned.
654 On output describes signedness of the output buffer.
655 If, taking into account is_unsigned flag, column data
656 is out of range of the output buffer, data for this column
657 is regarded truncated. Note that this has no correspondence
658 to the sign of result set column, if you need to find it out
659 use mysql_stmt_result_metadata.
660 error - where to write a truncation error if it is present.
661 possible error value is:
662 0 no truncation
663 1 value is out of range or buffer is too small
664
665 Please note that MYSQL_BIND also has internals members.
666*/
667
668typedef struct MYSQL_BIND {
669 unsigned long *length; /* output length pointer */
670 bool *is_null; /* Pointer to null indicator */
671 void *buffer; /* buffer to get/put data */
672 /* set this if you want to track data truncations happened during fetch */
673 bool *error;
674 unsigned char *row_ptr; /* for the current data position */
675 void (*store_param_func)(NET *net, struct MYSQL_BIND *param);
676 void (*fetch_result)(struct MYSQL_BIND *, MYSQL_FIELD *, unsigned char **row);
677 void (*skip_result)(struct MYSQL_BIND *, MYSQL_FIELD *, unsigned char **row);
678 /* output buffer length, must be set when fetching str/binary */
679 unsigned long buffer_length;
680 unsigned long offset; /* offset position for char/binary fetch */
681 unsigned long length_value; /* Used if length is 0 */
682 unsigned int param_number; /* For null count and error messages */
683 unsigned int pack_length; /* Internal length for packed data */
684 enum enum_field_types buffer_type; /* buffer type */
685 bool error_value; /* used if error is 0 */
686 bool is_unsigned; /* set if integer type is unsigned */
687 bool long_data_used; /* If used with mysql_send_long_data */
688 bool is_null_value; /* Used if is_null is 0 */
691
692struct MYSQL_STMT_EXT;
693
694/* statement handler */
695typedef struct MYSQL_STMT {
696 struct MEM_ROOT *mem_root; /* root allocations */
697 LIST list; /* list to keep track of all stmts */
698 MYSQL *mysql; /* connection handle */
699 MYSQL_BIND *params; /* input parameters */
700 MYSQL_BIND *bind; /* output parameters */
701 MYSQL_FIELD *fields; /* result set metadata */
702 MYSQL_DATA result; /* cached result set */
703 MYSQL_ROWS *data_cursor; /* current row in cached result */
704 /*
705 mysql_stmt_fetch() calls this function to fetch one row (it's different
706 for buffered, unbuffered and cursor fetch).
707 */
708 int (*read_row_func)(struct MYSQL_STMT *stmt, unsigned char **row);
709 /* copy of mysql->affected_rows after statement execution */
711 uint64_t insert_id; /* copy of mysql->insert_id */
712 unsigned long stmt_id; /* Id for prepared statement */
713 unsigned long flags; /* i.e. type of cursor to open */
714 unsigned long prefetch_rows; /* number of rows per one COM_FETCH */
715 /*
716 Copied from mysql->server_status after execute/fetch to know
717 server-side cursor status for this statement.
718 */
719 unsigned int server_status;
720 unsigned int last_errno; /* error code */
721 unsigned int param_count; /* input parameter count */
722 unsigned int field_count; /* number of columns in result set */
723 enum enum_mysql_stmt_state state; /* statement state */
724 char last_error[MYSQL_ERRMSG_SIZE]; /* error message */
726 /* Types of input parameters should be sent to server */
728 bool bind_param_done; /* input buffers were supplied */
729 unsigned char bind_result_done; /* output buffers were supplied */
730 /* mysql_stmt_close() had to cancel this result */
732 /*
733 Is set to true if we need to calculate field->max_length for
734 metadata fields when doing mysql_stmt_store_result.
735 */
739
741 /*
742 When doing mysql_stmt_store_result calculate max_length attribute
743 of statement metadata. This is to be consistent with the old API,
744 where this was done automatically.
745 In the new API we do that only by request because it slows down
746 mysql_stmt_store_result sufficiently.
747 */
749 /*
750 unsigned long with combination of cursor flags (read only, for update,
751 etc)
752 */
754 /*
755 Amount of rows to retrieve from server per one fetch if using cursors.
756 Accepts unsigned long attribute in the range 1 - ulong_max
757 */
760
762 MYSQL_BIND *binds, const char **names);
763
766 unsigned long length);
770 unsigned int column, unsigned long offset);
772unsigned long STDCALL mysql_stmt_param_count(MYSQL_STMT *stmt);
774 enum enum_stmt_attr_type attr_type,
775 const void *attr);
777 enum enum_stmt_attr_type attr_type,
778 void *attr);
781 unsigned n_params, const char **names);
787 unsigned int param_number,
788 const char *data, unsigned long length);
791unsigned int STDCALL mysql_stmt_errno(MYSQL_STMT *stmt);
792const char *STDCALL mysql_stmt_error(MYSQL_STMT *stmt);
793const char *STDCALL mysql_stmt_sqlstate(MYSQL_STMT *stmt);
795 MYSQL_ROW_OFFSET offset);
797void STDCALL mysql_stmt_data_seek(MYSQL_STMT *stmt, uint64_t offset);
801unsigned int STDCALL mysql_stmt_field_count(MYSQL_STMT *stmt);
802
805bool STDCALL mysql_autocommit(MYSQL *mysql, bool auto_mode);
810
811/* Public key reset */
813
814/* status return codes */
815#define MYSQL_NO_DATA 100
816#define MYSQL_DATA_TRUNCATED 101
817
818#define mysql_reload(mysql) mysql_refresh((mysql), REFRESH_GRANT)
819
820#define HAVE_MYSQL_REAL_CONNECT
821
823 const char *dns_srv_name,
824 const char *user, const char *passwd,
825 const char *db,
826 unsigned long client_flag);
827
829
830#ifdef __cplusplus
831}
832#endif
833
834#endif /* _mysql_h */
MySQL Client Plugin API.
Error messages for MySQL clients.
This file contains the field type.
enum_field_types
Column types for MySQL Note: Keep include/mysql/components/services/bits/stored_program_bits....
Definition: field_types.h:56
mysql_enum_shutdown_level
We want levels to be in growing order of hardness (because we use number comparisons).
Definition: mysql_com.h:1006
#define MYSQL_ERRMSG_SIZE
Max length of a error message.
Definition: my_err_bits.h:28
static char * query
Definition: myisam_ftdump.cc:47
static char * dns_srv_name
Definition: mysql.cc:199
int STDCALL mysql_refresh(MYSQL *mysql, unsigned int refresh_options)
unsigned int STDCALL mysql_stmt_field_count(MYSQL_STMT *stmt)
Definition: libmysql.cc:2357
bool STDCALL mysql_stmt_close(MYSQL_STMT *stmt)
Definition: libmysql.cc:4429
const char *STDCALL mysql_get_client_info(void)
Definition: libmysql.cc:909
const char *STDCALL mysql_sqlstate(MYSQL *mysql)
Definition: client.cc:9866
void STDCALL mysql_data_seek(MYSQL_RES *result, uint64_t offset)
Definition: libmysql.cc:684
bool STDCALL mysql_stmt_attr_get(MYSQL_STMT *stmt, enum enum_stmt_attr_type attr_type, void *attr)
Definition: libmysql.cc:2186
MYSQL_RES *STDCALL mysql_use_result(MYSQL *mysql)
Definition: client.cc:9836
int STDCALL mysql_binlog_open(MYSQL *mysql, MYSQL_RPL *rpl)
Open a new replication stream.
Definition: client.cc:7615
unsigned int STDCALL mysql_thread_safe(void)
Definition: libmysql.cc:962
unsigned int STDCALL mysql_errno(MYSQL *mysql)
Definition: client.cc:9524
uint64_t STDCALL mysql_num_rows(MYSQL_RES *res)
Definition: client.cc:9518
enum net_async_status STDCALL mysql_reset_connection_nonblocking(MYSQL *mysql)
Definition: client.cc:9744
int STDCALL mysql_send_query(MYSQL *mysql, const char *q, unsigned long length)
int STDCALL mysql_reset_connection(MYSQL *mysql)
Definition: client.cc:9734
void STDCALL mysql_reset_server_public_key(void)
Definition: client_authentication.cc:1032
bool STDCALL mysql_more_results(MYSQL *mysql)
Definition: client.cc:9802
unsigned long STDCALL mysql_hex_string(char *to, const char *from, unsigned long from_length)
enum connect_stage STDCALL mysql_get_connect_nonblocking_stage(MYSQL *mysql)
Definition: client.cc:5079
bool STDCALL mysql_stmt_bind_param(MYSQL_STMT *stmt, MYSQL_BIND *bnd)
Definition: libmysql.cc:2550
const char *STDCALL mysql_info(MYSQL *mysql)
Definition: client.cc:9713
int STDCALL mysql_real_query(MYSQL *mysql, const char *q, unsigned long length)
bool STDCALL mysql_rollback(MYSQL *mysql)
Definition: client.cc:9776
mysql_option
Definition: mysql.h:170
@ MYSQL_OPT_CONNECT_TIMEOUT
Definition: mysql.h:171
@ MYSQL_OPT_COMPRESS
Definition: mysql.h:172
@ MYSQL_OPT_LOAD_DATA_LOCAL_DIR
Definition: mysql.h:214
@ MYSQL_SET_CHARSET_DIR
Definition: mysql.h:177
@ MYSQL_OPT_PROTOCOL
Definition: mysql.h:180
@ MYSQL_OPT_CONNECT_ATTR_DELETE
Definition: mysql.h:199
@ MYSQL_OPT_SSL_CIPHER
Definition: mysql.h:194
@ MYSQL_OPT_TLS_SNI_SERVERNAME
Definition: mysql.h:217
@ MYSQL_OPT_LOCAL_INFILE
Definition: mysql.h:179
@ MYSQL_OPT_USE_PQC_SIGN
Definition: mysql.h:220
@ MYSQL_SET_CHARSET_NAME
Definition: mysql.h:178
@ MYSQL_OPT_FORCE_PQC
Definition: mysql.h:219
@ MYSQL_OPT_NET_BUFFER_LENGTH
Definition: mysql.h:204
@ MYSQL_OPT_MAX_ALLOWED_PACKET
Definition: mysql.h:203
@ MYSQL_SHARED_MEMORY_BASE_NAME
Definition: mysql.h:181
@ MYSQL_SERVER_PUBLIC_KEY
Definition: mysql.h:200
@ MYSQL_OPT_SSL_CA
Definition: mysql.h:192
@ MYSQL_OPT_READ_TIMEOUT
Definition: mysql.h:182
@ MYSQL_OPT_BIND
Definition: mysql.h:189
@ MYSQL_OPT_TLS_VERSION
Definition: mysql.h:205
@ MYSQL_OPT_WRITE_TIMEOUT
Definition: mysql.h:183
@ MYSQL_OPT_SSL_KEY
Definition: mysql.h:190
@ MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS
Definition: mysql.h:202
@ MYSQL_OPT_CONNECT_ATTR_ADD
Definition: mysql.h:198
@ MYSQL_OPT_SSL_FIPS_MODE
Definition: mysql.h:210
@ MYSQL_OPT_TLS_KEX
Definition: mysql.h:218
@ MYSQL_OPT_ZSTD_COMPRESSION_LEVEL
Definition: mysql.h:213
@ MYSQL_READ_DEFAULT_GROUP
Definition: mysql.h:176
@ MYSQL_OPT_CONNECT_ATTR_RESET
Definition: mysql.h:197
@ MYSQL_OPT_SSL_CRLPATH
Definition: mysql.h:196
@ MYSQL_OPT_GET_SERVER_PUBLIC_KEY
Definition: mysql.h:207
@ MYSQL_OPT_SSL_CERT
Definition: mysql.h:191
@ MYSQL_READ_DEFAULT_FILE
Definition: mysql.h:175
@ MYSQL_OPT_SSL_SESSION_DATA
Definition: mysql.h:216
@ MYSQL_OPT_SSL_MODE
Definition: mysql.h:206
@ MYSQL_OPT_SSL_CAPATH
Definition: mysql.h:193
@ MYSQL_DEFAULT_AUTH
Definition: mysql.h:188
@ MYSQL_PLUGIN_DIR
Definition: mysql.h:187
@ MYSQL_OPT_USER_PASSWORD
Definition: mysql.h:215
@ MYSQL_OPT_USE_RESULT
Definition: mysql.h:184
@ MYSQL_OPT_RETRY_COUNT
Definition: mysql.h:208
@ MYSQL_REPORT_DATA_TRUNCATION
Definition: mysql.h:185
@ MYSQL_OPT_COMPRESSION_ALGORITHMS
Definition: mysql.h:212
@ MYSQL_OPT_SSL_CRL
Definition: mysql.h:195
@ MYSQL_OPT_OPTIONAL_RESULTSET_METADATA
Definition: mysql.h:209
@ MYSQL_ENABLE_CLEARTEXT_PLUGIN
Definition: mysql.h:201
@ MYSQL_OPT_NAMED_PIPE
Definition: mysql.h:173
@ MYSQL_INIT_COMMAND
Definition: mysql.h:174
@ MYSQL_OPT_TLS_CIPHERSUITES
Definition: mysql.h:211
@ MYSQL_OPT_RECONNECT
Definition: mysql.h:186
uint64_t STDCALL mysql_stmt_insert_id(MYSQL_STMT *stmt)
Definition: libmysql.cc:2377
MYSQL_FIELD *STDCALL mysql_fetch_fields(MYSQL_RES *res)
Definition: client.cc:9858
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)
unsigned int STDCALL mysql_field_count(MYSQL *mysql)
Definition: client.cc:9862
MYSQL_ROW STDCALL mysql_fetch_row(MYSQL_RES *result)
Definition: client.cc:8716
const char *STDCALL mysql_get_host_info(MYSQL *mysql)
Definition: libmysql.cc:901
MYSQL_RES *STDCALL mysql_stmt_result_metadata(MYSQL_STMT *stmt)
Definition: libmysql.cc:1744
uint64_t STDCALL mysql_affected_rows(MYSQL *mysql)
Definition: client.cc:9840
enum_mysql_stmt_state
Definition: mysql.h:598
@ MYSQL_STMT_PREPARE_DONE
Definition: mysql.h:600
@ MYSQL_STMT_INIT_DONE
Definition: mysql.h:599
@ MYSQL_STMT_FETCH_DONE
Definition: mysql.h:602
@ MYSQL_STMT_EXECUTE_DONE
Definition: mysql.h:601
bool STDCALL mysql_eof(MYSQL_RES *res)
Definition: libmysql.cc:913
unsigned long STDCALL mysql_thread_id(MYSQL *mysql)
Definition: libmysql.cc:934
int STDCALL mysql_kill(MYSQL *mysql, unsigned long pid)
#define STDCALL
Definition: mysql.h:73
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 *)
MYSQL_FIELD *STDCALL mysql_fetch_field(MYSQL_RES *result)
Definition: client.cc:9852
MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_tell(MYSQL_STMT *stmt)
Definition: libmysql.cc:4304
int STDCALL mysql_options4(MYSQL *mysql, enum mysql_option option, const void *arg1, const void *arg2)
Definition: client.cc:9421
enum net_async_status STDCALL mysql_send_query_nonblocking(MYSQL *mysql, const char *query, unsigned long length)
int STDCALL mysql_set_character_set(MYSQL *mysql, const char *csname)
Definition: client.cc:9651
bool STDCALL mysql_stmt_free_result(MYSQL_STMT *stmt)
Definition: libmysql.cc:4405
bool STDCALL mysql_stmt_attr_set(MYSQL_STMT *stmt, enum enum_stmt_attr_type attr_type, const void *attr)
Definition: libmysql.cc:2156
bool STDCALL mysql_stmt_send_long_data(MYSQL_STMT *stmt, unsigned int param_number, const char *data, unsigned long length)
void *STDCALL mysql_get_ssl_session_data(MYSQL *mysql, unsigned int n_ticket, unsigned int *out_len)
Get the current SSL session serialization.
Definition: client.cc:3768
bool STDCALL mysql_free_ssl_session_data(MYSQL *mysql, void *data)
Free a saved SSL session serialization.
Definition: client.cc:3854
int STDCALL mysql_next_result(MYSQL *mysql)
Definition: client.cc:9814
int STDCALL mysql_select_db(MYSQL *mysql, const char *db)
Definition: client.cc:7799
int STDCALL mysql_stmt_fetch(MYSQL_STMT *stmt)
Definition: libmysql.cc:3986
bool STDCALL mysql_change_user(MYSQL *mysql, const char *user, const char *passwd, const char *db)
Definition: libmysql.cc:288
bool STDCALL mysql_bind_param(MYSQL *mysql, unsigned n_params, MYSQL_BIND *binds, const char **names)
Definition: libmysql.cc:2553
unsigned long STDCALL mysql_get_server_version(MYSQL *mysql)
Definition: client.cc:9628
int STDCALL mysql_stmt_fetch_column(MYSQL_STMT *stmt, MYSQL_BIND *bind_arg, unsigned int column, unsigned long offset)
struct MYSQL_DATA MYSQL_DATA
unsigned long STDCALL mysql_stmt_param_count(MYSQL_STMT *stmt)
Definition: libmysql.cc:2339
int STDCALL mysql_shutdown(MYSQL *mysql, enum mysql_enum_shutdown_level shutdown_level)
Definition: libmysql.cc:757
unsigned int STDCALL mysql_warning_count(MYSQL *mysql)
Definition: libmysql.cc:932
enum_stmt_attr_type
Definition: mysql.h:740
@ STMT_ATTR_PREFETCH_ROWS
Definition: mysql.h:758
@ STMT_ATTR_UPDATE_MAX_LENGTH
Definition: mysql.h:748
@ STMT_ATTR_CURSOR_TYPE
Definition: mysql.h:753
int STDCALL mysql_stmt_next_result(MYSQL_STMT *stmt)
Definition: libmysql.cc:4562
enum net_async_status STDCALL mysql_real_query_nonblocking(MYSQL *mysql, const char *query, unsigned long length)
const char *STDCALL mysql_character_set_name(MYSQL *mysql)
Definition: libmysql.cc:942
void STDCALL myodbc_remove_escape(MYSQL *mysql, char *name)
Definition: libmysql.cc:1178
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:174
MYSQL_RES *STDCALL mysql_store_result(MYSQL *mysql)
Definition: client.cc:8483
int STDCALL mysql_server_init(int argc, char **argv, char **groups)
Definition: libmysql.cc:150
enum net_async_status STDCALL mysql_select_db_nonblocking(MYSQL *mysql, const char *db, bool *error)
bool STDCALL mysql_stmt_reset(MYSQL_STMT *stmt)
Definition: libmysql.cc:4489
unsigned long *STDCALL mysql_fetch_lengths(MYSQL_RES *result)
Definition: client.cc:8809
enum net_async_status STDCALL mysql_next_result_nonblocking(MYSQL *mysql)
Definition: libmysql.cc:4543
bool STDCALL mysql_read_query_result(MYSQL *mysql)
Definition: libmysql.cc:4597
unsigned int mysql_port
Definition: client.cc:222
struct MYSQL_FIELD MYSQL_FIELD
MYSQL_FIELD_OFFSET STDCALL mysql_field_tell(MYSQL_RES *res)
Definition: libmysql.cc:924
struct MYSQL_STMT MYSQL_STMT
MYSQL_RES *STDCALL mysql_stmt_param_metadata(MYSQL_STMT *stmt)
Definition: libmysql.cc:1786
MYSQL_FIELD_OFFSET STDCALL mysql_field_seek(MYSQL_RES *result, MYSQL_FIELD_OFFSET offset)
Definition: libmysql.cc:708
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:9208
int STDCALL mysql_stmt_store_result(MYSQL_STMT *stmt)
Definition: libmysql.cc:4182
bool STDCALL mysql_get_ssl_session_reused(MYSQL *mysql)
Check if the current ssl session is reused.
Definition: client.cc:3873
int STDCALL mysql_set_server_option(MYSQL *mysql, enum enum_mysql_set_option option)
Definition: libmysql.cc:854
mysql_status
Definition: mysql.h:260
@ MYSQL_STATUS_USE_RESULT
Definition: mysql.h:263
@ MYSQL_STATUS_STATEMENT_GET_RESULT
Definition: mysql.h:264
@ MYSQL_STATUS_GET_RESULT
Definition: mysql.h:262
@ MYSQL_STATUS_READY
Definition: mysql.h:261
MYSQL_STMT *STDCALL mysql_stmt_init(MYSQL *mysql)
Definition: libmysql.cc:1458
int STDCALL mysql_stmt_prepare(MYSQL_STMT *stmt, const char *query, unsigned long length)
uint64_t STDCALL mysql_stmt_affected_rows(MYSQL_STMT *stmt)
Definition: libmysql.cc:2348
uint64_t STDCALL mysql_insert_id(MYSQL *mysql)
Definition: libmysql.cc:930
const char *STDCALL mysql_stat(MYSQL *mysql)
Definition: libmysql.cc:881
struct MYSQL_RES MYSQL_RES
unsigned int STDCALL mysql_get_proto_info(MYSQL *mysql)
Definition: libmysql.cc:905
void STDCALL mysql_stmt_data_seek(MYSQL_STMT *stmt, uint64_t offset)
Definition: libmysql.cc:4314
MYSQL_ROWS * MYSQL_ROW_OFFSET
Definition: mysql.h:159
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:3663
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:9592
int STDCALL mysql_binlog_fetch(MYSQL *mysql, MYSQL_RPL *rpl)
Fetch one event from the server.
Definition: client.cc:7742
MYSQL_RES *STDCALL mysql_list_tables(MYSQL *mysql, const char *wild)
Definition: libmysql.cc:733
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:8542
MYSQL *STDCALL mysql_init(MYSQL *mysql)
Definition: client.cc:3372
const char *STDCALL mysql_get_server_info(MYSQL *mysql)
Definition: libmysql.cc:897
int STDCALL mysql_stmt_execute(MYSQL_STMT *stmt)
Definition: libmysql.cc:2312
MYSQL_ROW_OFFSET STDCALL mysql_row_tell(MYSQL_RES *res)
Definition: libmysql.cc:920
void STDCALL mysql_get_character_set_info(MYSQL *mysql, MY_CHARSET_INFO *charset)
Definition: libmysql.cc:946
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:2015
unsigned long STDCALL mysql_escape_string(char *to, const char *from, unsigned long from_length)
void STDCALL mysql_server_end(void)
Definition: libmysql.cc:215
MYSQL_RES *STDCALL mysql_list_processes(MYSQL *mysql)
Definition: libmysql.cc:780
const char *STDCALL mysql_stmt_sqlstate(MYSQL_STMT *stmt)
Definition: libmysql.cc:4511
int STDCALL mysql_query(MYSQL *mysql, const char *q)
Definition: libmysql.cc:676
struct MYSQL_ROWS MYSQL_ROWS
MYSQL_ROW_OFFSET STDCALL mysql_row_seek(MYSQL_RES *result, MYSQL_ROW_OFFSET offset)
Definition: libmysql.cc:700
struct MYSQL MYSQL
bool STDCALL mysql_commit(MYSQL *mysql)
Definition: client.cc:9767
MYSQL_FIELD *STDCALL mysql_fetch_field_direct(MYSQL_RES *res, unsigned int fieldnr)
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_protocol_type
Definition: mysql.h:267
@ MYSQL_PROTOCOL_TCP
Definition: mysql.h:269
@ MYSQL_PROTOCOL_DEFAULT
Definition: mysql.h:268
@ MYSQL_PROTOCOL_MEMORY
Definition: mysql.h:272
@ MYSQL_PROTOCOL_PIPE
Definition: mysql.h:271
@ MYSQL_PROTOCOL_SOCKET
Definition: mysql.h:270
unsigned long STDCALL mysql_get_client_version(void)
Definition: libmysql.cc:911
char * mysql_unix_port
Definition: client.cc:223
unsigned int STDCALL mysql_stmt_errno(MYSQL_STMT *stmt)
Definition: libmysql.cc:4506
const char *STDCALL mysql_get_ssl_cipher(MYSQL *mysql)
Definition: client.cc:3745
uint64_t STDCALL mysql_stmt_num_rows(MYSQL_STMT *stmt)
Definition: libmysql.cc:4333
unsigned long STDCALL mysql_real_escape_string_quote(MYSQL *mysql, char *to, const char *from, unsigned long length, char quote)
const char *STDCALL mysql_error(MYSQL *mysql)
Definition: client.cc:9528
struct character_set MY_CHARSET_INFO
bool STDCALL mysql_autocommit(MYSQL *mysql, bool auto_mode)
Definition: client.cc:9785
void STDCALL mysql_free_result(MYSQL_RES *result)
Definition: client.cc:2044
MYSQL_RES *STDCALL mysql_list_dbs(MYSQL *mysql, const char *wild)
Definition: libmysql.cc:719
MYSQL_RES *STDCALL mysql_list_fields(MYSQL *mysql, const char *table, const char *wild)
Definition: libmysql.cc:786
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:8734
int STDCALL mysql_options(MYSQL *mysql, enum mysql_option option, const void *arg)
Definition: client.cc:8855
void STDCALL mysql_debug(const char *debug)
Definition: libmysql.cc:260
bool STDCALL mysql_thread_init(void)
Definition: libmysql.cc:233
mysql_ssl_mode
Definition: mysql.h:275
@ SSL_MODE_REQUIRED
Definition: mysql.h:278
@ SSL_MODE_PREFERRED
Definition: mysql.h:277
@ SSL_MODE_VERIFY_CA
Definition: mysql.h:279
@ SSL_MODE_DISABLED
Definition: mysql.h:276
@ SSL_MODE_VERIFY_IDENTITY
Definition: mysql.h:280
unsigned long STDCALL mysql_real_escape_string(MYSQL *mysql, char *to, const char *from, unsigned long length)
bool STDCALL mysql_stmt_bind_result(MYSQL_STMT *stmt, MYSQL_BIND *bnd)
Definition: libmysql.cc:3829
const char *STDCALL mysql_stmt_error(MYSQL_STMT *stmt)
Definition: libmysql.cc:4520
void mysql_set_local_infile_default(MYSQL *mysql)
Definition: libmysql.cc:664
void STDCALL mysql_binlog_close(MYSQL *mysql, MYSQL_RPL *rpl)
Close replication stream.
Definition: client.cc:7784
MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_seek(MYSQL_STMT *stmt, MYSQL_ROW_OFFSET offset)
Definition: libmysql.cc:4291
void STDCALL mysql_close(MYSQL *sock)
Definition: client.cc:7959
struct MYSQL_RPL MYSQL_RPL
Struct for information about a replication stream.
int my_socket
Definition: mysql.h:65
bool STDCALL mysql_stmt_bind_named_param(MYSQL_STMT *stmt, MYSQL_BIND *binds, unsigned n_params, const char **names)
Definition: libmysql.cc:2665
uint64_t my_ulonglong
Definition: mysql.h:54
int STDCALL mysql_dump_debug_info(MYSQL *mysql)
Definition: libmysql.cc:862
enum enum_resultset_metadata STDCALL mysql_result_metadata(MYSQL_RES *result)
Definition: client.cc:9844
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:9565
void STDCALL mysql_thread_end(void)
Definition: libmysql.cc:235
unsigned int MYSQL_FIELD_OFFSET
Definition: mysql.h:146
char ** MYSQL_ROW
Definition: mysql.h:145
int STDCALL mysql_ping(MYSQL *mysql)
Definition: libmysql.cc:888
unsigned int STDCALL mysql_num_fields(MYSQL_RES *res)
Definition: client.cc:9520
struct MYSQL_BIND MYSQL_BIND
mysql_ssl_fips_mode
Definition: mysql.h:283
@ SSL_FIPS_MODE_OFF
Definition: mysql.h:284
@ SSL_FIPS_MODE_STRICT
Definition: mysql.h:286
@ SSL_FIPS_MODE_ON
Definition: mysql.h:285
Common definition between mysql server & client.
enum_session_state_type
Type of state change information that the server can include in the Ok packet.
Definition: mysql_com.h:1071
connect_stage
Describes the current state of Asynchronous connection phase state machine.
Definition: mysql_com.h:1253
#define SCRAMBLE_LENGTH
Length of random string sent by server on handshake; this is also length of obfuscated password,...
Definition: mysql_com.h:128
enum_mysql_set_option
options for mysql_options()
Definition: mysql_com.h:1058
enum_resultset_metadata
Definition: mysql_com.h:1025
char * user
Definition: mysqladmin.cc:67
const char * host
Definition: mysqladmin.cc:66
void error(const char *format,...)
static MYSQL * sock
Definition: mysqlcheck.cc:57
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
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: instrumented_condition_variable.h:32
Definition: buffer.h:45
Definition: options.cc:57
Definition: rpl_relay_log_sanitizer.cc:30
net_async_status
Definition: plugin_auth_common.h:157
required string key
Definition: replication_asynchronous_connection_failover.proto:60
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33
required string type
Definition: replication_group_member_actions.proto:34
#define SQLSTATE_LENGTH
Length of SQL state string.
Definition: sql_bits.h:28
case opt name
Definition: sslopt-case.h:29
Definition: m_ctype.h:421
Definition: init_commands_array.h:26
Definition: my_list.h:36
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
Definition: mysql.h:668
unsigned long buffer_length
Definition: mysql.h:679
void * extension
Definition: mysql.h:689
unsigned int param_number
Definition: mysql.h:682
void(* store_param_func)(NET *net, struct MYSQL_BIND *param)
Definition: mysql.h:675
bool error_value
Definition: mysql.h:685
bool long_data_used
Definition: mysql.h:687
void * buffer
Definition: mysql.h:671
bool is_unsigned
Definition: mysql.h:686
void(* fetch_result)(struct MYSQL_BIND *, MYSQL_FIELD *, unsigned char **row)
Definition: mysql.h:676
unsigned long length_value
Definition: mysql.h:681
unsigned long * length
Definition: mysql.h:669
unsigned long offset
Definition: mysql.h:680
void(* skip_result)(struct MYSQL_BIND *, MYSQL_FIELD *, unsigned char **row)
Definition: mysql.h:677
bool * is_null
Definition: mysql.h:670
bool is_null_value
Definition: mysql.h:688
unsigned int pack_length
Definition: mysql.h:683
enum enum_field_types buffer_type
Definition: mysql.h:684
bool * error
Definition: mysql.h:673
unsigned char * row_ptr
Definition: mysql.h:674
Definition: mysql.h:163
MYSQL_ROWS * data
Definition: mysql.h:164
uint64_t rows
Definition: mysql.h:166
unsigned int fields
Definition: mysql.h:167
struct MEM_ROOT * alloc
Definition: mysql.h:165
Definition: mysql.h:121
unsigned int db_length
Definition: mysql.h:135
unsigned int name_length
Definition: mysql.h:131
unsigned int org_table_length
Definition: mysql.h:134
char * name
Definition: mysql.h:122
char * org_name
Definition: mysql.h:123
char * db
Definition: mysql.h:126
char * def
Definition: mysql.h:128
char * catalog
Definition: mysql.h:127
unsigned int charsetnr
Definition: mysql.h:140
unsigned int catalog_length
Definition: mysql.h:136
unsigned int org_name_length
Definition: mysql.h:132
unsigned int decimals
Definition: mysql.h:139
unsigned long max_length
Definition: mysql.h:130
unsigned int table_length
Definition: mysql.h:133
char * org_table
Definition: mysql.h:125
unsigned int def_length
Definition: mysql.h:137
void * extension
Definition: mysql.h:142
char * table
Definition: mysql.h:124
unsigned int flags
Definition: mysql.h:138
unsigned long length
Definition: mysql.h:129
enum enum_field_types type
Definition: mysql.h:141
Definition: sql_common.h:207
Definition: mysql.h:343
MYSQL_ROW current_row
Definition: mysql.h:352
struct MYSQL_DATA * data
Definition: mysql.h:346
unsigned int current_field
Definition: mysql.h:354
void * extension
Definition: mysql.h:359
enum enum_resultset_metadata metadata
Definition: mysql.h:358
MYSQL * handle
Definition: mysql.h:349
MYSQL_FIELD * fields
Definition: mysql.h:345
MYSQL_ROWS * data_cursor
Definition: mysql.h:347
bool eof
Definition: mysql.h:355
const struct MYSQL_METHODS * methods
Definition: mysql.h:350
MYSQL_ROW row
Definition: mysql.h:351
struct MEM_ROOT * field_alloc
Definition: mysql.h:353
uint64_t row_count
Definition: mysql.h:344
unsigned long * lengths
Definition: mysql.h:348
unsigned int field_count
Definition: mysql.h:354
bool unbuffered_fetch_cancelled
Definition: mysql.h:357
Definition: mysql.h:153
MYSQL_ROW data
Definition: mysql.h:155
struct MYSQL_ROWS * next
Definition: mysql.h:154
unsigned long length
Definition: mysql.h:156
Struct for information about a replication stream.
Definition: mysql.h:395
unsigned int server_id
Position in the binary log to
Definition: mysql.h:400
size_t file_name_length
Definition: mysql.h:396
unsigned long size
GTID set data or an argument for
Definition: mysql.h:413
uint64_t start_position
Filename of the binary log to read.
Definition: mysql.h:398
const unsigned char * buffer
Size of the packet returned by
Definition: mysql.h:415
void(* fix_gtid_set)(struct MYSQL_RPL *rpl, unsigned char *packet_gtid_set)
Callback function which is called
Definition: mysql.h:409
const char * file_name
Length of the 'file_name' or 0
Definition: mysql.h:397
size_t gtid_set_encoded_size
Flags, e.g.
Definition: mysql.h:405
void * gtid_set_arg
Definition: mysql.h:410
unsigned int flags
Server ID to use when identifying
Definition: mysql.h:402
Definition: libmysql.cc:112
char ** names
Definition: libmysql.cc:124
uint n_params
Stores the size of array of names for statement bind parameters.
Definition: libmysql.cc:123
Definition: mysql.h:695
bool bind_param_done
Definition: mysql.h:728
unsigned int last_errno
Definition: mysql.h:720
unsigned long flags
Definition: mysql.h:713
MYSQL * mysql
Definition: mysql.h:698
MYSQL_ROWS * data_cursor
Definition: mysql.h:703
unsigned int server_status
Definition: mysql.h:719
MYSQL_FIELD * fields
Definition: mysql.h:701
char last_error[MYSQL_ERRMSG_SIZE]
Definition: mysql.h:724
int(* read_row_func)(struct MYSQL_STMT *stmt, unsigned char **row)
Definition: mysql.h:708
enum enum_mysql_stmt_state state
Definition: mysql.h:723
bool send_types_to_server
Definition: mysql.h:727
unsigned char bind_result_done
Definition: mysql.h:729
MYSQL_BIND * bind
Definition: mysql.h:700
unsigned long prefetch_rows
Definition: mysql.h:714
uint64_t insert_id
Definition: mysql.h:711
MYSQL_DATA result
Definition: mysql.h:702
bool unbuffered_fetch_cancelled
Definition: mysql.h:731
unsigned int param_count
Definition: mysql.h:721
unsigned int field_count
Definition: mysql.h:722
unsigned long stmt_id
Definition: mysql.h:712
bool update_max_length
Definition: mysql.h:736
uint64_t affected_rows
Definition: mysql.h:710
LIST list
Definition: mysql.h:697
struct MYSQL_STMT_EXT * extension
Definition: mysql.h:737
char sqlstate[SQLSTATE_LENGTH+1]
Definition: mysql.h:725
MYSQL_BIND * params
Definition: mysql.h:699
struct MEM_ROOT * mem_root
Definition: mysql.h:696
Definition: mysql.h:303
unsigned int server_language
Definition: mysql.h:321
struct MEM_ROOT * field_alloc
Definition: mysql.h:310
bool free_me
Definition: mysql.h:326
unsigned int port
Definition: mysql.h:316
const struct MYSQL_METHODS * methods
Definition: mysql.h:333
unsigned long server_capabilities
Definition: mysql.h:317
struct CHARSET_INFO * charset
Definition: mysql.h:308
char * host_info
Definition: mysql.h:306
unsigned long packet_length
Definition: mysql.h:315
char * info
Definition: mysql.h:307
char * unix_socket
Definition: mysql.h:306
char * server_version
Definition: mysql.h:306
unsigned long client_flag
Definition: mysql.h:317
char * passwd
Definition: mysql.h:306
char * host
Definition: mysql.h:306
char * user
Definition: mysql.h:306
char scramble[SCRAMBLE_LENGTH+1]
Definition: mysql.h:330
void * thd
Definition: mysql.h:334
uint64_t affected_rows
Definition: mysql.h:311
MYSQL_FIELD * fields
Definition: mysql.h:309
unsigned int server_status
Definition: mysql.h:320
bool * unbuffered_fetch_owner
Definition: mysql.h:339
unsigned int warning_count
Definition: mysql.h:322
unsigned int protocol_version
Definition: mysql.h:318
char * db
Definition: mysql.h:307
NET net
Definition: mysql.h:304
bool reconnect
Definition: mysql.h:327
uint64_t insert_id
Definition: mysql.h:312
unsigned long thread_id
Definition: mysql.h:314
enum mysql_status status
Definition: mysql.h:324
LIST * stmts
Definition: mysql.h:332
uint64_t extra_info
Definition: mysql.h:313
void * extension
Definition: mysql.h:340
enum enum_resultset_metadata resultset_metadata
Definition: mysql.h:325
unsigned int field_count
Definition: mysql.h:319
unsigned char * connector_fd
Definition: mysql.h:305
Definition: mysql_com.h:915
Definition: mysql.h:289
const char * comment
Definition: mysql.h:294
const char * name
Definition: mysql.h:293
const char * csname
Definition: mysql.h:292
const char * dir
Definition: mysql.h:295
unsigned int number
Definition: mysql.h:290
unsigned int state
Definition: mysql.h:291
unsigned int mbminlen
Definition: mysql.h:296
unsigned int mbmaxlen
Definition: mysql.h:297
Definition: result.h:30
Definition: sql_common.h:175
Definition: mysql.h:229
unsigned int port
Definition: mysql.h:231
char * ssl_capath
Definition: mysql.h:239
char * my_cnf_group
Definition: mysql.h:235
int(* local_infile_init)(void **, const char *, void *)
Definition: mysql.h:252
char * ssl_ca
Definition: mysql.h:238
char * ssl_key
Definition: mysql.h:236
void(* local_infile_end)(void *)
Definition: mysql.h:254
char * ssl_cert
Definition: mysql.h:237
char * my_cnf_file
Definition: mysql.h:235
struct Init_commands_array * init_commands
Definition: mysql.h:234
void * local_infile_userdata
Definition: mysql.h:256
char * unix_socket
Definition: mysql.h:233
unsigned int read_timeout
Definition: mysql.h:230
unsigned long max_allowed_packet
Definition: mysql.h:242
char * password
Definition: mysql.h:233
int(* local_infile_error)(void *, char *, unsigned int)
Definition: mysql.h:255
char * ssl_cipher
Definition: mysql.h:240
char * host
Definition: mysql.h:233
char * db
Definition: mysql.h:233
unsigned int protocol
Definition: mysql.h:231
unsigned int write_timeout
Definition: mysql.h:230
bool report_data_truncation
Definition: mysql.h:249
char * charset_dir
Definition: mysql.h:235
char * bind_address
The local address to bind when connecting to remote server.
Definition: mysql.h:247
bool named_pipe
Definition: mysql.h:243
unsigned long client_flag
Definition: mysql.h:232
char * charset_name
Definition: mysql.h:235
char * user
Definition: mysql.h:233
unsigned int connect_timeout
Definition: mysql.h:230
bool compress
Definition: mysql.h:243
char * shared_memory_base_name
Definition: mysql.h:241
struct st_mysql_options_extention * extension
Definition: mysql.h:257
int(* local_infile_read)(void *, char *, unsigned int)
Definition: mysql.h:253
synode_no q[FIFO_SIZE]
Definition: xcom_base.cc:4113