Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/mysql
File: mysql.h
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
[0] Fix | Delete
2012 by MontyProgram AB
[1] Fix | Delete
[2] Fix | Delete
This library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Library General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
This library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Library General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Library General Public
[13] Fix | Delete
License along with this library; if not, write to the Free
[14] Fix | Delete
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
[15] Fix | Delete
MA 02111-1301, USA */
[16] Fix | Delete
[17] Fix | Delete
/* defines for the libmariadb library */
[18] Fix | Delete
[19] Fix | Delete
#ifndef _mysql_h
[20] Fix | Delete
#define _mysql_h
[21] Fix | Delete
[22] Fix | Delete
#ifdef __cplusplus
[23] Fix | Delete
extern "C" {
[24] Fix | Delete
#endif
[25] Fix | Delete
[26] Fix | Delete
#ifndef LIBMARIADB
[27] Fix | Delete
#define LIBMARIADB
[28] Fix | Delete
#endif
[29] Fix | Delete
#ifndef MYSQL_CLIENT
[30] Fix | Delete
#define MYSQL_CLIENT
[31] Fix | Delete
#endif
[32] Fix | Delete
[33] Fix | Delete
#include <stdarg.h>
[34] Fix | Delete
[35] Fix | Delete
#if !defined (_global_h) && !defined (MY_GLOBAL_INCLUDED) /* If not standard header */
[36] Fix | Delete
#include <sys/types.h>
[37] Fix | Delete
typedef char my_bool;
[38] Fix | Delete
typedef unsigned long long my_ulonglong;
[39] Fix | Delete
[40] Fix | Delete
#if !defined(_WIN32)
[41] Fix | Delete
#define STDCALL
[42] Fix | Delete
#else
[43] Fix | Delete
#define STDCALL __stdcall
[44] Fix | Delete
#endif
[45] Fix | Delete
[46] Fix | Delete
#ifndef my_socket_defined
[47] Fix | Delete
#define my_socket_defined
[48] Fix | Delete
#if defined(_WIN64)
[49] Fix | Delete
#define my_socket unsigned long long
[50] Fix | Delete
#elif defined(_WIN32)
[51] Fix | Delete
#define my_socket unsigned int
[52] Fix | Delete
#else
[53] Fix | Delete
typedef int my_socket;
[54] Fix | Delete
#endif
[55] Fix | Delete
#endif
[56] Fix | Delete
#endif
[57] Fix | Delete
#include "mariadb_com.h"
[58] Fix | Delete
#include "mariadb_version.h"
[59] Fix | Delete
#include "ma_list.h"
[60] Fix | Delete
#include "mariadb_ctype.h"
[61] Fix | Delete
[62] Fix | Delete
[63] Fix | Delete
typedef struct st_ma_const_string
[64] Fix | Delete
{
[65] Fix | Delete
const char *str;
[66] Fix | Delete
size_t length;
[67] Fix | Delete
} MARIADB_CONST_STRING;
[68] Fix | Delete
[69] Fix | Delete
typedef struct st_ma_const_data
[70] Fix | Delete
{
[71] Fix | Delete
const unsigned char *data;
[72] Fix | Delete
size_t length;
[73] Fix | Delete
} MARIADB_CONST_DATA;
[74] Fix | Delete
[75] Fix | Delete
[76] Fix | Delete
#ifndef ST_MA_USED_MEM_DEFINED
[77] Fix | Delete
#define ST_MA_USED_MEM_DEFINED
[78] Fix | Delete
typedef struct st_ma_used_mem { /* struct for once_alloc */
[79] Fix | Delete
struct st_ma_used_mem *next; /* Next block in use */
[80] Fix | Delete
size_t left; /* memory left in block */
[81] Fix | Delete
size_t size; /* Size of block */
[82] Fix | Delete
} MA_USED_MEM;
[83] Fix | Delete
[84] Fix | Delete
typedef struct st_ma_mem_root {
[85] Fix | Delete
MA_USED_MEM *free;
[86] Fix | Delete
MA_USED_MEM *used;
[87] Fix | Delete
MA_USED_MEM *pre_alloc;
[88] Fix | Delete
size_t min_malloc;
[89] Fix | Delete
size_t block_size;
[90] Fix | Delete
unsigned int block_num;
[91] Fix | Delete
unsigned int first_block_usage;
[92] Fix | Delete
void (*error_handler)(void);
[93] Fix | Delete
} MA_MEM_ROOT;
[94] Fix | Delete
#endif
[95] Fix | Delete
[96] Fix | Delete
extern unsigned int mysql_port;
[97] Fix | Delete
extern char *mysql_unix_port;
[98] Fix | Delete
extern unsigned int mariadb_deinitialize_ssl;
[99] Fix | Delete
[100] Fix | Delete
#define IS_PRI_KEY(n) ((n) & PRI_KEY_FLAG)
[101] Fix | Delete
#define IS_NOT_NULL(n) ((n) & NOT_NULL_FLAG)
[102] Fix | Delete
#define IS_BLOB(n) ((n) & BLOB_FLAG)
[103] Fix | Delete
#define IS_NUM(t) (((t) <= MYSQL_TYPE_INT24 && (t) != MYSQL_TYPE_TIMESTAMP) || (t) == MYSQL_TYPE_YEAR || (t) == MYSQL_TYPE_NEWDECIMAL)
[104] Fix | Delete
#define IS_NUM_FIELD(f) ((f)->flags & NUM_FLAG)
[105] Fix | Delete
#define INTERNAL_NUM_FIELD(f) (((f)->type <= MYSQL_TYPE_INT24 && ((f)->type != MYSQL_TYPE_TIMESTAMP || (f)->length == 14 || (f)->length == 8)) || (f)->type == MYSQL_TYPE_YEAR || (f)->type == MYSQL_TYPE_NEWDECIMAL || (f)->type == MYSQL_TYPE_DECIMAL)
[106] Fix | Delete
[107] Fix | Delete
typedef struct st_mysql_field {
[108] Fix | Delete
char *name; /* Name of column */
[109] Fix | Delete
char *org_name; /* Name of original column (added after 3.23.58) */
[110] Fix | Delete
char *table; /* Table of column if column was a field */
[111] Fix | Delete
char *org_table; /* Name of original table (added after 3.23.58 */
[112] Fix | Delete
char *db; /* table schema (added after 3.23.58) */
[113] Fix | Delete
char *catalog; /* table catalog (added after 3.23.58) */
[114] Fix | Delete
char *def; /* Default value (set by mysql_list_fields) */
[115] Fix | Delete
unsigned long length; /* Width of column */
[116] Fix | Delete
unsigned long max_length; /* Max width of selected set */
[117] Fix | Delete
/* added after 3.23.58 */
[118] Fix | Delete
unsigned int name_length;
[119] Fix | Delete
unsigned int org_name_length;
[120] Fix | Delete
unsigned int table_length;
[121] Fix | Delete
unsigned int org_table_length;
[122] Fix | Delete
unsigned int db_length;
[123] Fix | Delete
unsigned int catalog_length;
[124] Fix | Delete
unsigned int def_length;
[125] Fix | Delete
/***********************/
[126] Fix | Delete
unsigned int flags; /* Div flags */
[127] Fix | Delete
unsigned int decimals; /* Number of decimals in field */
[128] Fix | Delete
unsigned int charsetnr; /* char set number (added in 4.1) */
[129] Fix | Delete
enum enum_field_types type; /* Type of field. Se mysql_com.h for types */
[130] Fix | Delete
void *extension; /* added in 4.1 */
[131] Fix | Delete
} MYSQL_FIELD;
[132] Fix | Delete
[133] Fix | Delete
typedef char **MYSQL_ROW; /* return data as array of strings */
[134] Fix | Delete
typedef unsigned int MYSQL_FIELD_OFFSET; /* offset to current field */
[135] Fix | Delete
[136] Fix | Delete
#define SET_CLIENT_ERROR(a, b, c, d) \
[137] Fix | Delete
do { \
[138] Fix | Delete
(a)->net.last_errno= (b);\
[139] Fix | Delete
strncpy((a)->net.sqlstate, (c), SQLSTATE_LENGTH);\
[140] Fix | Delete
(a)->net.sqlstate[SQLSTATE_LENGTH]= 0;\
[141] Fix | Delete
strncpy((a)->net.last_error, (d) ? (d) : ER((b)), MYSQL_ERRMSG_SIZE - 1);\
[142] Fix | Delete
(a)->net.last_error[MYSQL_ERRMSG_SIZE - 1]= 0;\
[143] Fix | Delete
} while(0)
[144] Fix | Delete
[145] Fix | Delete
/* For mysql_async.c */
[146] Fix | Delete
#define set_mariadb_error(A,B,C) SET_CLIENT_ERROR((A),(B),(C),0)
[147] Fix | Delete
extern const char *SQLSTATE_UNKNOWN;
[148] Fix | Delete
#define unknown_sqlstate SQLSTATE_UNKNOWN
[149] Fix | Delete
[150] Fix | Delete
#define CLEAR_CLIENT_ERROR(a) \
[151] Fix | Delete
do { \
[152] Fix | Delete
(a)->net.last_errno= 0;\
[153] Fix | Delete
strcpy((a)->net.sqlstate, "00000");\
[154] Fix | Delete
(a)->net.last_error[0]= '\0';\
[155] Fix | Delete
if ((a)->net.extension)\
[156] Fix | Delete
(a)->net.extension->extended_errno= 0;\
[157] Fix | Delete
} while (0)
[158] Fix | Delete
[159] Fix | Delete
#define MYSQL_COUNT_ERROR (~(unsigned long long) 0)
[160] Fix | Delete
[161] Fix | Delete
[162] Fix | Delete
typedef struct st_mysql_rows {
[163] Fix | Delete
struct st_mysql_rows *next; /* list of rows */
[164] Fix | Delete
MYSQL_ROW data;
[165] Fix | Delete
unsigned long length;
[166] Fix | Delete
} MYSQL_ROWS;
[167] Fix | Delete
[168] Fix | Delete
typedef MYSQL_ROWS *MYSQL_ROW_OFFSET; /* offset to current row */
[169] Fix | Delete
[170] Fix | Delete
typedef struct st_mysql_data {
[171] Fix | Delete
MYSQL_ROWS *data;
[172] Fix | Delete
void *embedded_info;
[173] Fix | Delete
MA_MEM_ROOT alloc;
[174] Fix | Delete
unsigned long long rows;
[175] Fix | Delete
unsigned int fields;
[176] Fix | Delete
void *extension;
[177] Fix | Delete
} MYSQL_DATA;
[178] Fix | Delete
[179] Fix | Delete
enum mysql_option
[180] Fix | Delete
{
[181] Fix | Delete
MYSQL_OPT_CONNECT_TIMEOUT,
[182] Fix | Delete
MYSQL_OPT_COMPRESS,
[183] Fix | Delete
MYSQL_OPT_NAMED_PIPE,
[184] Fix | Delete
MYSQL_INIT_COMMAND,
[185] Fix | Delete
MYSQL_READ_DEFAULT_FILE,
[186] Fix | Delete
MYSQL_READ_DEFAULT_GROUP,
[187] Fix | Delete
MYSQL_SET_CHARSET_DIR,
[188] Fix | Delete
MYSQL_SET_CHARSET_NAME,
[189] Fix | Delete
MYSQL_OPT_LOCAL_INFILE,
[190] Fix | Delete
MYSQL_OPT_PROTOCOL,
[191] Fix | Delete
MYSQL_SHARED_MEMORY_BASE_NAME,
[192] Fix | Delete
MYSQL_OPT_READ_TIMEOUT,
[193] Fix | Delete
MYSQL_OPT_WRITE_TIMEOUT,
[194] Fix | Delete
MYSQL_OPT_USE_RESULT,
[195] Fix | Delete
MYSQL_OPT_USE_REMOTE_CONNECTION,
[196] Fix | Delete
MYSQL_OPT_USE_EMBEDDED_CONNECTION,
[197] Fix | Delete
MYSQL_OPT_GUESS_CONNECTION,
[198] Fix | Delete
MYSQL_SET_CLIENT_IP,
[199] Fix | Delete
MYSQL_SECURE_AUTH,
[200] Fix | Delete
MYSQL_REPORT_DATA_TRUNCATION,
[201] Fix | Delete
MYSQL_OPT_RECONNECT,
[202] Fix | Delete
MYSQL_OPT_SSL_VERIFY_SERVER_CERT,
[203] Fix | Delete
MYSQL_PLUGIN_DIR,
[204] Fix | Delete
MYSQL_DEFAULT_AUTH,
[205] Fix | Delete
MYSQL_OPT_BIND,
[206] Fix | Delete
MYSQL_OPT_SSL_KEY,
[207] Fix | Delete
MYSQL_OPT_SSL_CERT,
[208] Fix | Delete
MYSQL_OPT_SSL_CA,
[209] Fix | Delete
MYSQL_OPT_SSL_CAPATH,
[210] Fix | Delete
MYSQL_OPT_SSL_CIPHER,
[211] Fix | Delete
MYSQL_OPT_SSL_CRL,
[212] Fix | Delete
MYSQL_OPT_SSL_CRLPATH,
[213] Fix | Delete
/* Connection attribute options */
[214] Fix | Delete
MYSQL_OPT_CONNECT_ATTR_RESET,
[215] Fix | Delete
MYSQL_OPT_CONNECT_ATTR_ADD,
[216] Fix | Delete
MYSQL_OPT_CONNECT_ATTR_DELETE,
[217] Fix | Delete
MYSQL_SERVER_PUBLIC_KEY,
[218] Fix | Delete
MYSQL_ENABLE_CLEARTEXT_PLUGIN,
[219] Fix | Delete
MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS,
[220] Fix | Delete
MYSQL_OPT_SSL_ENFORCE,
[221] Fix | Delete
MYSQL_OPT_MAX_ALLOWED_PACKET,
[222] Fix | Delete
MYSQL_OPT_NET_BUFFER_LENGTH,
[223] Fix | Delete
MYSQL_OPT_TLS_VERSION,
[224] Fix | Delete
[225] Fix | Delete
/* MariaDB specific */
[226] Fix | Delete
MYSQL_PROGRESS_CALLBACK=5999,
[227] Fix | Delete
MYSQL_OPT_NONBLOCK,
[228] Fix | Delete
/* MariaDB Connector/C specific */
[229] Fix | Delete
MYSQL_DATABASE_DRIVER=7000,
[230] Fix | Delete
MARIADB_OPT_SSL_FP, /* deprecated, use MARIADB_OPT_TLS_PEER_FP instead */
[231] Fix | Delete
MARIADB_OPT_SSL_FP_LIST, /* deprecated, use MARIADB_OPT_TLS_PEER_FP_LIST instead */
[232] Fix | Delete
MARIADB_OPT_TLS_PASSPHRASE, /* passphrase for encrypted certificates */
[233] Fix | Delete
MARIADB_OPT_TLS_CIPHER_STRENGTH,
[234] Fix | Delete
MARIADB_OPT_TLS_VERSION,
[235] Fix | Delete
MARIADB_OPT_TLS_PEER_FP, /* single finger print for server certificate verification */
[236] Fix | Delete
MARIADB_OPT_TLS_PEER_FP_LIST, /* finger print white list for server certificate verification */
[237] Fix | Delete
MARIADB_OPT_CONNECTION_READ_ONLY,
[238] Fix | Delete
MYSQL_OPT_CONNECT_ATTRS, /* for mysql_get_optionv */
[239] Fix | Delete
MARIADB_OPT_USERDATA,
[240] Fix | Delete
MARIADB_OPT_CONNECTION_HANDLER,
[241] Fix | Delete
MARIADB_OPT_PORT,
[242] Fix | Delete
MARIADB_OPT_UNIXSOCKET,
[243] Fix | Delete
MARIADB_OPT_PASSWORD,
[244] Fix | Delete
MARIADB_OPT_HOST,
[245] Fix | Delete
MARIADB_OPT_USER,
[246] Fix | Delete
MARIADB_OPT_SCHEMA,
[247] Fix | Delete
MARIADB_OPT_DEBUG,
[248] Fix | Delete
MARIADB_OPT_FOUND_ROWS,
[249] Fix | Delete
MARIADB_OPT_MULTI_RESULTS,
[250] Fix | Delete
MARIADB_OPT_MULTI_STATEMENTS,
[251] Fix | Delete
MARIADB_OPT_INTERACTIVE,
[252] Fix | Delete
MARIADB_OPT_PROXY_HEADER,
[253] Fix | Delete
MARIADB_OPT_IO_WAIT,
[254] Fix | Delete
MARIADB_OPT_SKIP_READ_RESPONSE,
[255] Fix | Delete
MARIADB_OPT_RESTRICTED_AUTH,
[256] Fix | Delete
MARIADB_OPT_RPL_REGISTER_REPLICA,
[257] Fix | Delete
MARIADB_OPT_STATUS_CALLBACK,
[258] Fix | Delete
MARIADB_OPT_SERVER_PLUGINS
[259] Fix | Delete
};
[260] Fix | Delete
[261] Fix | Delete
enum mariadb_value {
[262] Fix | Delete
MARIADB_CHARSET_ID,
[263] Fix | Delete
MARIADB_CHARSET_NAME,
[264] Fix | Delete
MARIADB_CLIENT_ERRORS,
[265] Fix | Delete
MARIADB_CLIENT_VERSION,
[266] Fix | Delete
MARIADB_CLIENT_VERSION_ID,
[267] Fix | Delete
MARIADB_CONNECTION_ASYNC_TIMEOUT,
[268] Fix | Delete
MARIADB_CONNECTION_ASYNC_TIMEOUT_MS,
[269] Fix | Delete
MARIADB_CONNECTION_MARIADB_CHARSET_INFO,
[270] Fix | Delete
MARIADB_CONNECTION_ERROR,
[271] Fix | Delete
MARIADB_CONNECTION_ERROR_ID,
[272] Fix | Delete
MARIADB_CONNECTION_HOST,
[273] Fix | Delete
MARIADB_CONNECTION_INFO,
[274] Fix | Delete
MARIADB_CONNECTION_PORT,
[275] Fix | Delete
MARIADB_CONNECTION_PROTOCOL_VERSION_ID,
[276] Fix | Delete
MARIADB_CONNECTION_PVIO_TYPE,
[277] Fix | Delete
MARIADB_CONNECTION_SCHEMA,
[278] Fix | Delete
MARIADB_CONNECTION_SERVER_TYPE,
[279] Fix | Delete
MARIADB_CONNECTION_SERVER_VERSION,
[280] Fix | Delete
MARIADB_CONNECTION_SERVER_VERSION_ID,
[281] Fix | Delete
MARIADB_CONNECTION_SOCKET,
[282] Fix | Delete
MARIADB_CONNECTION_SQLSTATE,
[283] Fix | Delete
MARIADB_CONNECTION_SSL_CIPHER,
[284] Fix | Delete
MARIADB_TLS_LIBRARY,
[285] Fix | Delete
MARIADB_CONNECTION_TLS_VERSION,
[286] Fix | Delete
MARIADB_CONNECTION_TLS_VERSION_ID,
[287] Fix | Delete
MARIADB_CONNECTION_TYPE,
[288] Fix | Delete
MARIADB_CONNECTION_UNIX_SOCKET,
[289] Fix | Delete
MARIADB_CONNECTION_USER,
[290] Fix | Delete
MARIADB_MAX_ALLOWED_PACKET,
[291] Fix | Delete
MARIADB_NET_BUFFER_LENGTH,
[292] Fix | Delete
MARIADB_CONNECTION_SERVER_STATUS,
[293] Fix | Delete
MARIADB_CONNECTION_SERVER_CAPABILITIES,
[294] Fix | Delete
MARIADB_CONNECTION_EXTENDED_SERVER_CAPABILITIES,
[295] Fix | Delete
MARIADB_CONNECTION_CLIENT_CAPABILITIES,
[296] Fix | Delete
MARIADB_CONNECTION_BYTES_READ,
[297] Fix | Delete
MARIADB_CONNECTION_BYTES_SENT
[298] Fix | Delete
};
[299] Fix | Delete
[300] Fix | Delete
enum mysql_status { MYSQL_STATUS_READY,
[301] Fix | Delete
MYSQL_STATUS_GET_RESULT,
[302] Fix | Delete
MYSQL_STATUS_USE_RESULT,
[303] Fix | Delete
MYSQL_STATUS_QUERY_SENT,
[304] Fix | Delete
MYSQL_STATUS_SENDING_LOAD_DATA,
[305] Fix | Delete
MYSQL_STATUS_FETCHING_DATA,
[306] Fix | Delete
MYSQL_STATUS_NEXT_RESULT_PENDING,
[307] Fix | Delete
MYSQL_STATUS_QUIT_SENT, /* object is "destroyed" at this stage */
[308] Fix | Delete
MYSQL_STATUS_STMT_RESULT
[309] Fix | Delete
};
[310] Fix | Delete
[311] Fix | Delete
enum mysql_protocol_type
[312] Fix | Delete
{
[313] Fix | Delete
MYSQL_PROTOCOL_DEFAULT, MYSQL_PROTOCOL_TCP, MYSQL_PROTOCOL_SOCKET,
[314] Fix | Delete
MYSQL_PROTOCOL_PIPE, MYSQL_PROTOCOL_MEMORY
[315] Fix | Delete
};
[316] Fix | Delete
[317] Fix | Delete
struct st_mysql_options {
[318] Fix | Delete
unsigned int connect_timeout, read_timeout, write_timeout;
[319] Fix | Delete
unsigned int port, protocol;
[320] Fix | Delete
unsigned long client_flag;
[321] Fix | Delete
char *host,*user,*password,*unix_socket,*db;
[322] Fix | Delete
struct st_dynamic_array *init_command;
[323] Fix | Delete
char *my_cnf_file,*my_cnf_group, *charset_dir, *charset_name;
[324] Fix | Delete
char *ssl_key; /* PEM key file */
[325] Fix | Delete
char *ssl_cert; /* PEM cert file */
[326] Fix | Delete
char *ssl_ca; /* PEM CA file */
[327] Fix | Delete
char *ssl_capath; /* PEM directory of CA-s? */
[328] Fix | Delete
char *ssl_cipher;
[329] Fix | Delete
char *shared_memory_base_name;
[330] Fix | Delete
unsigned long max_allowed_packet;
[331] Fix | Delete
my_bool use_ssl; /* if to use SSL or not */
[332] Fix | Delete
my_bool compress,named_pipe;
[333] Fix | Delete
my_bool reconnect, unused_1, unused_2, unused_3;
[334] Fix | Delete
enum mysql_option methods_to_use;
[335] Fix | Delete
char *bind_address;
[336] Fix | Delete
my_bool secure_auth;
[337] Fix | Delete
my_bool report_data_truncation;
[338] Fix | Delete
/* function pointers for local infile support */
[339] Fix | Delete
int (*local_infile_init)(void **, const char *, void *);
[340] Fix | Delete
int (*local_infile_read)(void *, char *, unsigned int);
[341] Fix | Delete
void (*local_infile_end)(void *);
[342] Fix | Delete
int (*local_infile_error)(void *, char *, unsigned int);
[343] Fix | Delete
void *local_infile_userdata;
[344] Fix | Delete
struct st_mysql_options_extension *extension;
[345] Fix | Delete
};
[346] Fix | Delete
[347] Fix | Delete
typedef struct st_mysql {
[348] Fix | Delete
NET net; /* Communication parameters */
[349] Fix | Delete
void *unused_0;
[350] Fix | Delete
char *host,*user,*passwd,*unix_socket,*server_version,*host_info;
[351] Fix | Delete
char *info,*db;
[352] Fix | Delete
const struct ma_charset_info_st *charset; /* character set */
[353] Fix | Delete
MYSQL_FIELD *fields;
[354] Fix | Delete
MA_MEM_ROOT field_alloc;
[355] Fix | Delete
unsigned long long affected_rows;
[356] Fix | Delete
unsigned long long insert_id; /* id if insert on table with NEXTNR */
[357] Fix | Delete
unsigned long long extra_info; /* Used by mysqlshow */
[358] Fix | Delete
unsigned long thread_id; /* Id for connection in server */
[359] Fix | Delete
unsigned long packet_length;
[360] Fix | Delete
unsigned int port;
[361] Fix | Delete
unsigned long client_flag;
[362] Fix | Delete
unsigned long server_capabilities;
[363] Fix | Delete
unsigned int protocol_version;
[364] Fix | Delete
unsigned int field_count;
[365] Fix | Delete
unsigned int server_status;
[366] Fix | Delete
unsigned int server_language;
[367] Fix | Delete
unsigned int warning_count; /* warning count, added in 4.1 protocol */
[368] Fix | Delete
struct st_mysql_options options;
[369] Fix | Delete
enum mysql_status status;
[370] Fix | Delete
my_bool free_me; /* If free in mysql_close */
[371] Fix | Delete
my_bool unused_1;
[372] Fix | Delete
char scramble_buff[20+ 1];
[373] Fix | Delete
/* madded after 3.23.58 */
[374] Fix | Delete
my_bool unused_2;
[375] Fix | Delete
void *unused_3, *unused_4, *unused_5, *unused_6;
[376] Fix | Delete
LIST *stmts;
[377] Fix | Delete
const struct st_mariadb_methods *methods;
[378] Fix | Delete
void *thd;
[379] Fix | Delete
my_bool *unbuffered_fetch_owner;
[380] Fix | Delete
char *info_buffer;
[381] Fix | Delete
struct st_mariadb_extension *extension;
[382] Fix | Delete
} MYSQL;
[383] Fix | Delete
[384] Fix | Delete
typedef struct st_mysql_res {
[385] Fix | Delete
unsigned long long row_count;
[386] Fix | Delete
unsigned int field_count, current_field;
[387] Fix | Delete
MYSQL_FIELD *fields;
[388] Fix | Delete
MYSQL_DATA *data;
[389] Fix | Delete
MYSQL_ROWS *data_cursor;
[390] Fix | Delete
MA_MEM_ROOT field_alloc;
[391] Fix | Delete
MYSQL_ROW row; /* If unbuffered read */
[392] Fix | Delete
MYSQL_ROW current_row; /* buffer to current row */
[393] Fix | Delete
unsigned long *lengths; /* column lengths of current row */
[394] Fix | Delete
MYSQL *handle; /* for unbuffered reads */
[395] Fix | Delete
my_bool eof; /* Used my mysql_fetch_row */
[396] Fix | Delete
my_bool is_ps;
[397] Fix | Delete
} MYSQL_RES;
[398] Fix | Delete
[399] Fix | Delete
typedef struct
[400] Fix | Delete
{
[401] Fix | Delete
unsigned long *p_max_allowed_packet;
[402] Fix | Delete
unsigned long *p_net_buffer_length;
[403] Fix | Delete
void *extension;
[404] Fix | Delete
} MYSQL_PARAMETERS;
[405] Fix | Delete
[406] Fix | Delete
[407] Fix | Delete
enum mariadb_field_attr_t
[408] Fix | Delete
{
[409] Fix | Delete
MARIADB_FIELD_ATTR_DATA_TYPE_NAME= 0,
[410] Fix | Delete
MARIADB_FIELD_ATTR_FORMAT_NAME= 1
[411] Fix | Delete
};
[412] Fix | Delete
[413] Fix | Delete
#define MARIADB_FIELD_ATTR_LAST MARIADB_FIELD_ATTR_FORMAT_NAME
[414] Fix | Delete
[415] Fix | Delete
[416] Fix | Delete
int STDCALL mariadb_field_attr(MARIADB_CONST_STRING *attr,
[417] Fix | Delete
const MYSQL_FIELD *field,
[418] Fix | Delete
enum mariadb_field_attr_t type);
[419] Fix | Delete
[420] Fix | Delete
#ifndef _mysql_time_h_
[421] Fix | Delete
enum enum_mysql_timestamp_type
[422] Fix | Delete
{
[423] Fix | Delete
MYSQL_TIMESTAMP_NONE= -2, MYSQL_TIMESTAMP_ERROR= -1,
[424] Fix | Delete
MYSQL_TIMESTAMP_DATE= 0, MYSQL_TIMESTAMP_DATETIME= 1, MYSQL_TIMESTAMP_TIME= 2
[425] Fix | Delete
};
[426] Fix | Delete
[427] Fix | Delete
typedef struct st_mysql_time
[428] Fix | Delete
{
[429] Fix | Delete
unsigned int year, month, day, hour, minute, second;
[430] Fix | Delete
unsigned long second_part;
[431] Fix | Delete
my_bool neg;
[432] Fix | Delete
enum enum_mysql_timestamp_type time_type;
[433] Fix | Delete
} MYSQL_TIME;
[434] Fix | Delete
#define AUTO_SEC_PART_DIGITS 39
[435] Fix | Delete
#endif
[436] Fix | Delete
[437] Fix | Delete
#define SEC_PART_DIGITS 6
[438] Fix | Delete
#define MARIADB_INVALID_SOCKET -1
[439] Fix | Delete
[440] Fix | Delete
/* Asynchronous API constants */
[441] Fix | Delete
#define MYSQL_WAIT_READ 1
[442] Fix | Delete
#define MYSQL_WAIT_WRITE 2
[443] Fix | Delete
#define MYSQL_WAIT_EXCEPT 4
[444] Fix | Delete
#define MYSQL_WAIT_TIMEOUT 8
[445] Fix | Delete
[446] Fix | Delete
typedef struct character_set
[447] Fix | Delete
{
[448] Fix | Delete
unsigned int number; /* character set number */
[449] Fix | Delete
unsigned int state; /* character set state */
[450] Fix | Delete
const char *csname; /* character set name */
[451] Fix | Delete
const char *name; /* collation name */
[452] Fix | Delete
const char *comment; /* comment */
[453] Fix | Delete
const char *dir; /* character set directory */
[454] Fix | Delete
unsigned int mbminlen; /* min. length for multibyte strings */
[455] Fix | Delete
unsigned int mbmaxlen; /* max. length for multibyte strings */
[456] Fix | Delete
} MY_CHARSET_INFO;
[457] Fix | Delete
[458] Fix | Delete
/* Local infile support functions */
[459] Fix | Delete
#define LOCAL_INFILE_ERROR_LEN 512
[460] Fix | Delete
[461] Fix | Delete
#include "mariadb_stmt.h"
[462] Fix | Delete
[463] Fix | Delete
#ifndef MYSQL_CLIENT_PLUGIN_HEADER
[464] Fix | Delete
#define MYSQL_CLIENT_PLUGIN_HEADER \
[465] Fix | Delete
int type; \
[466] Fix | Delete
unsigned int interface_version; \
[467] Fix | Delete
const char *name; \
[468] Fix | Delete
const char *author; \
[469] Fix | Delete
const char *desc; \
[470] Fix | Delete
unsigned int version[3]; \
[471] Fix | Delete
const char *license; \
[472] Fix | Delete
void *mysql_api; \
[473] Fix | Delete
int (*init)(char *, size_t, int, va_list); \
[474] Fix | Delete
int (*deinit)(void); \
[475] Fix | Delete
int (*options)(const char *option, const void *);
[476] Fix | Delete
struct st_mysql_client_plugin
[477] Fix | Delete
{
[478] Fix | Delete
MYSQL_CLIENT_PLUGIN_HEADER
[479] Fix | Delete
};
[480] Fix | Delete
[481] Fix | Delete
struct st_mysql_client_plugin *
[482] Fix | Delete
mysql_load_plugin(struct st_mysql *mysql, const char *name, int type,
[483] Fix | Delete
int argc, ...);
[484] Fix | Delete
struct st_mysql_client_plugin * STDCALL
[485] Fix | Delete
mysql_load_plugin_v(struct st_mysql *mysql, const char *name, int type,
[486] Fix | Delete
int argc, va_list args);
[487] Fix | Delete
struct st_mysql_client_plugin * STDCALL
[488] Fix | Delete
mysql_client_find_plugin(struct st_mysql *mysql, const char *name, int type);
[489] Fix | Delete
struct st_mysql_client_plugin * STDCALL
[490] Fix | Delete
mysql_client_register_plugin(struct st_mysql *mysql,
[491] Fix | Delete
struct st_mysql_client_plugin *plugin);
[492] Fix | Delete
#endif
[493] Fix | Delete
[494] Fix | Delete
[495] Fix | Delete
void STDCALL mysql_set_local_infile_handler(MYSQL *mysql,
[496] Fix | Delete
int (*local_infile_init)(void **, const char *, void *),
[497] Fix | Delete
int (*local_infile_read)(void *, char *, unsigned int),
[498] Fix | Delete
void (*local_infile_end)(void *),
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function