You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Fix Win64 warnings. Correctly define my_socket in ma_global.h
This commit is contained in:
@@ -2703,12 +2703,12 @@ mysql_optionsv(MYSQL *mysql,enum mysql_option option, ...)
|
||||
break;
|
||||
case MYSQL_OPT_MAX_ALLOWED_PACKET:
|
||||
if (mysql)
|
||||
mysql->options.max_allowed_packet= (*(size_t *)arg1);
|
||||
mysql->options.max_allowed_packet= (unsigned long)(*(size_t *)arg1);
|
||||
else
|
||||
max_allowed_packet= (*(size_t *)arg1);
|
||||
max_allowed_packet= (unsigned long)(*(size_t *)arg1);
|
||||
break;
|
||||
case MYSQL_OPT_NET_BUFFER_LENGTH:
|
||||
net_buffer_length= (*(size_t *)arg1);
|
||||
net_buffer_length= (unsigned long)(*(size_t *)arg1);
|
||||
break;
|
||||
case MYSQL_OPT_SSL_ENFORCE:
|
||||
mysql->options.use_ssl= (*(my_bool *)arg1);
|
||||
|
Reference in New Issue
Block a user