@@ -125,6 +125,7 @@ typedef struct MYSQL_FIELD {
125
125
char * org_table ; /* Org table name, if table was an alias */
126
126
char * db ; /* Database for table */
127
127
char * catalog ; /* Catalog for table */
128
+ char * def ; /* Default value (set by mysql_list_fields) */
128
129
unsigned long length ; /* Width of column (create length) */
129
130
unsigned long max_length ; /* Max width for selected set */
130
131
unsigned int name_length ;
@@ -133,6 +134,7 @@ typedef struct MYSQL_FIELD {
133
134
unsigned int org_table_length ;
134
135
unsigned int db_length ;
135
136
unsigned int catalog_length ;
137
+ unsigned int def_length ;
136
138
unsigned int flags ; /* Div flags */
137
139
unsigned int decimals ; /* Number of decimals in field */
138
140
unsigned int charsetnr ; /* Character set */
@@ -181,6 +183,7 @@ enum mysql_option {
181
183
MYSQL_OPT_WRITE_TIMEOUT ,
182
184
MYSQL_OPT_USE_RESULT ,
183
185
MYSQL_REPORT_DATA_TRUNCATION ,
186
+ MYSQL_OPT_RECONNECT ,
184
187
MYSQL_PLUGIN_DIR ,
185
188
MYSQL_DEFAULT_AUTH ,
186
189
MYSQL_OPT_BIND ,
@@ -317,7 +320,8 @@ typedef struct MYSQL {
317
320
struct st_mysql_options options ;
318
321
enum mysql_status status ;
319
322
enum enum_resultset_metadata resultset_metadata ;
320
- bool free_me ; /* If free in mysql_close */
323
+ bool free_me ; /* If free in mysql_close */
324
+ bool reconnect ; /* set to 1 if automatic reconnect */
321
325
322
326
/* session-wide random string */
323
327
char scramble [SCRAMBLE_LENGTH + 1 ];
@@ -465,6 +469,9 @@ const char *STDCALL mysql_character_set_name(MYSQL *mysql);
465
469
int STDCALL mysql_set_character_set (MYSQL * mysql , const char * csname );
466
470
467
471
MYSQL * STDCALL mysql_init (MYSQL * mysql );
472
+ bool STDCALL mysql_ssl_set (MYSQL * mysql , const char * key , const char * cert ,
473
+ const char * ca , const char * capath ,
474
+ const char * cipher );
468
475
const char * STDCALL mysql_get_ssl_cipher (MYSQL * mysql );
469
476
bool STDCALL mysql_get_ssl_session_reused (MYSQL * mysql );
470
477
void * STDCALL mysql_get_ssl_session_data (MYSQL * mysql , unsigned int n_ticket ,
@@ -518,7 +525,11 @@ void mysql_set_local_infile_handler(
518
525
int (* local_infile_error )(void * , char * , unsigned int ), void * );
519
526
520
527
void mysql_set_local_infile_default (MYSQL * mysql );
528
+ int STDCALL mysql_shutdown (MYSQL * mysql ,
529
+ enum mysql_enum_shutdown_level shutdown_level );
521
530
int STDCALL mysql_dump_debug_info (MYSQL * mysql );
531
+ int STDCALL mysql_refresh (MYSQL * mysql , unsigned int refresh_options );
532
+ int STDCALL mysql_kill (MYSQL * mysql , unsigned long pid );
522
533
int STDCALL mysql_set_server_option (MYSQL * mysql ,
523
534
enum enum_mysql_set_option option );
524
535
int STDCALL mysql_ping (MYSQL * mysql );
@@ -531,6 +542,7 @@ unsigned long STDCALL mysql_get_server_version(MYSQL *mysql);
531
542
unsigned int STDCALL mysql_get_proto_info (MYSQL * mysql );
532
543
MYSQL_RES * STDCALL mysql_list_dbs (MYSQL * mysql , const char * wild );
533
544
MYSQL_RES * STDCALL mysql_list_tables (MYSQL * mysql , const char * wild );
545
+ MYSQL_RES * STDCALL mysql_list_processes (MYSQL * mysql );
534
546
int STDCALL mysql_options (MYSQL * mysql , enum mysql_option option ,
535
547
const void * arg );
536
548
int STDCALL mysql_options4 (MYSQL * mysql , enum mysql_option option ,
@@ -550,6 +562,8 @@ enum net_async_status STDCALL mysql_fetch_row_nonblocking(MYSQL_RES *res,
550
562
551
563
unsigned long * STDCALL mysql_fetch_lengths (MYSQL_RES * result );
552
564
MYSQL_FIELD * STDCALL mysql_fetch_field (MYSQL_RES * result );
565
+ MYSQL_RES * STDCALL mysql_list_fields (MYSQL * mysql , const char * table ,
566
+ const char * wild );
553
567
unsigned long STDCALL mysql_escape_string (char * to , const char * from ,
554
568
unsigned long from_length );
555
569
unsigned long STDCALL mysql_hex_string (char * to , const char * from ,
@@ -590,7 +604,7 @@ enum enum_mysql_stmt_state {
590
604
internally by the client library.
591
605
Public members with their descriptions are listed below
592
606
(conventionally `On input' refers to the binds given to
593
- mysql_stmt_bind_named_param , `On output' refers to the binds given
607
+ mysql_stmt_bind_param , `On output' refers to the binds given
594
608
to mysql_stmt_bind_result):
595
609
596
610
buffer_type - One of the MYSQL_* types, used to describe
@@ -603,7 +617,7 @@ enum enum_mysql_stmt_state {
603
617
output data.
604
618
The type of memory pointed by buffer must correspond
605
619
to buffer_type. See the correspondence table in
606
- the comment to mysql_stmt_bind_named_param .
620
+ the comment to mysql_stmt_bind_param .
607
621
608
622
The two above members are mandatory for any kind of bind.
609
623
@@ -759,6 +773,7 @@ bool STDCALL mysql_stmt_attr_set(MYSQL_STMT *stmt,
759
773
bool STDCALL mysql_stmt_attr_get (MYSQL_STMT * stmt ,
760
774
enum enum_stmt_attr_type attr_type ,
761
775
void * attr );
776
+ bool STDCALL mysql_stmt_bind_param (MYSQL_STMT * stmt , MYSQL_BIND * bnd );
762
777
bool STDCALL mysql_stmt_bind_named_param (MYSQL_STMT * stmt , MYSQL_BIND * binds ,
763
778
unsigned n_params , const char * * names );
764
779
bool STDCALL mysql_stmt_bind_result (MYSQL_STMT * stmt , MYSQL_BIND * bnd );
@@ -797,6 +812,8 @@ void STDCALL mysql_reset_server_public_key(void);
797
812
#define MYSQL_NO_DATA 100
798
813
#define MYSQL_DATA_TRUNCATED 101
799
814
815
+ #define mysql_reload (mysql ) mysql_refresh((mysql), REFRESH_GRANT)
816
+
800
817
#define HAVE_MYSQL_REAL_CONNECT
801
818
802
819
MYSQL * STDCALL mysql_real_connect_dns_srv (MYSQL * mysql ,
0 commit comments