@@ -205,6 +205,10 @@ extern unsigned int mariadb_deinitialize_ssl;
205
205
MYSQL_OPT_CONNECT_ATTR_DELETE ,
206
206
MYSQL_SERVER_PUBLIC_KEY ,
207
207
MYSQL_ENABLE_CLEARTEXT_PLUGIN ,
208
+ MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS ,
209
+ MYSQL_OPT_SSL_ENFORCE ,
210
+ MYSQL_OPT_MAX_ALLOWED_PACKET ,
211
+ MYSQL_OPT_NET_BUFFER_LENGTH ,
208
212
209
213
/* MariaDB specific */
210
214
MYSQL_PROGRESS_CALLBACK = 5999 ,
@@ -389,16 +393,6 @@ typedef struct character_set
389
393
unsigned int mbmaxlen ; /* max. length for multibyte strings */
390
394
} MY_CHARSET_INFO ;
391
395
392
- typedef struct
393
- {
394
- unsigned long * p_max_allowed_packet ;
395
- unsigned long * p_net_buffer_length ;
396
- void * extension ;
397
- } MYSQL_PARAMETERS ;
398
-
399
- #define net_buffer_length (*mysql_get_parameters()->p_net_buffer_length)
400
- #define max_allowed_packet (*mysql_get_parameters()->p_max_allowed_packet)
401
-
402
396
/* Local infile support functions */
403
397
#define LOCAL_INFILE_ERROR_LEN 512
404
398
@@ -450,8 +444,6 @@ int STDCALL mysql_ssl_set(MYSQL *mysql, const char *key,
450
444
const char * cert , const char * ca ,
451
445
const char * capath , const char * cipher );
452
446
const char * STDCALL mysql_get_ssl_cipher (MYSQL * mysql );
453
- MYSQL * STDCALL mysql_connect (MYSQL * mysql , const char * host ,
454
- const char * user , const char * passwd );
455
447
my_bool STDCALL mysql_change_user (MYSQL * mysql , const char * user ,
456
448
const char * passwd , const char * db );
457
449
MYSQL * STDCALL mysql_real_connect (MYSQL * mysql , const char * host ,
@@ -469,8 +461,6 @@ int STDCALL mysql_send_query(MYSQL *mysql, const char *q,
469
461
my_bool STDCALL mysql_read_query_result (MYSQL * mysql );
470
462
int STDCALL mysql_real_query (MYSQL * mysql , const char * q ,
471
463
size_t length );
472
- int STDCALL mysql_create_db (MYSQL * mysql , const char * DB );
473
- int STDCALL mysql_drop_db (MYSQL * mysql , const char * DB );
474
464
int STDCALL mysql_shutdown (MYSQL * mysql , enum mysql_enum_shutdown_level shutdown_level );
475
465
int STDCALL mysql_dump_debug_info (MYSQL * mysql );
476
466
int STDCALL mysql_refresh (MYSQL * mysql ,
@@ -528,7 +518,6 @@ size_t STDCALL mariadb_convert_string(const char *from, size_t *from_len, CHARSE
528
518
int STDCALL mysql_optionsv (MYSQL * mysql ,enum mysql_option option , ...);
529
519
int STDCALL mysql_get_optionv (MYSQL * mysql , enum mysql_option option , void * arg , ...);
530
520
int STDCALL mysql_get_option (MYSQL * mysql , enum mysql_option option , void * arg );
531
- MYSQL_PARAMETERS * STDCALL mysql_get_parameters (void );
532
521
unsigned long STDCALL mysql_hex_string (char * to , const char * from , size_t len );
533
522
my_socket STDCALL mysql_get_socket (MYSQL * mysql );
534
523
unsigned int STDCALL mysql_get_timeout_value (const MYSQL * mysql );
@@ -675,7 +664,6 @@ struct st_mariadb_api {
675
664
MYSQL * (STDCALL * mysql_init )(MYSQL * mysql );
676
665
int (STDCALL * mysql_ssl_set )(MYSQL * mysql , const char * key , const char * cert , const char * ca , const char * capath , const char * cipher );
677
666
const char * (STDCALL * mysql_get_ssl_cipher )(MYSQL * mysql );
678
- MYSQL * (STDCALL * mysql_connect )(MYSQL * mysql , const char * host , const char * user , const char * passwd );
679
667
my_bool (STDCALL * mysql_change_user )(MYSQL * mysql , const char * user , const char * passwd , const char * db );
680
668
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 );
681
669
void (STDCALL * mysql_close )(MYSQL * sock );
@@ -684,8 +672,6 @@ struct st_mariadb_api {
684
672
int (STDCALL * mysql_send_query )(MYSQL * mysql , const char * q , size_t length );
685
673
my_bool (STDCALL * mysql_read_query_result )(MYSQL * mysql );
686
674
int (STDCALL * mysql_real_query )(MYSQL * mysql , const char * q , size_t length );
687
- int (STDCALL * mysql_create_db )(MYSQL * mysql , const char * DB );
688
- int (STDCALL * mysql_drop_db )(MYSQL * mysql , const char * DB );
689
675
int (STDCALL * mysql_shutdown )(MYSQL * mysql , enum mysql_enum_shutdown_level shutdown_level );
690
676
int (STDCALL * mysql_dump_debug_info )(MYSQL * mysql );
691
677
int (STDCALL * mysql_refresh )(MYSQL * mysql , unsigned int refresh_options );
@@ -732,7 +718,6 @@ struct st_mariadb_api {
732
718
int (STDCALL * mysql_optionsv )(MYSQL * mysql ,enum mysql_option option , ...);
733
719
int (STDCALL * mysql_get_optionv )(MYSQL * mysql , enum mysql_option option , void * arg , ...);
734
720
int (STDCALL * mysql_get_option )(MYSQL * mysql , enum mysql_option option , void * arg );
735
- MYSQL_PARAMETERS * (STDCALL * mysql_get_parameters )(void );
736
721
unsigned long (STDCALL * mysql_hex_string )(char * to , const char * from , size_t len );
737
722
my_socket (STDCALL * mysql_get_socket )(MYSQL * mysql );
738
723
unsigned int (STDCALL * mysql_get_timeout_value )(const MYSQL * mysql );
0 commit comments