1
0
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:
Vladislav Vaintroub
2016-10-12 21:04:55 +00:00
parent e34a595ce2
commit 7cb8479605
10 changed files with 27 additions and 20 deletions

View File

@@ -190,7 +190,7 @@ static int com_multi_ps2(MYSQL *mysql)
bind[0].buffer= &intval;
bind[1].buffer_type= MYSQL_TYPE_STRING;
bind[1].buffer= (char *)varval;
bind[1].buffer_length= strlen(varval);
bind[1].buffer_length= (ulong)strlen(varval);
stmt= mysql_stmt_init(mysql);
mysql_stmt_attr_set(stmt, STMT_ATTR_PREBIND_PARAMS, &param_count);
@@ -284,7 +284,7 @@ static int execute_direct_example(MYSQL *mysql)
bind[0].buffer= &intval;
bind[1].buffer_type= MYSQL_TYPE_STRING;
bind[1].buffer= (char *)strval;
bind[1].buffer_length= strlen(strval);
bind[1].buffer_length= (ulong)strlen(strval);
/* set number of parameters */
if (mysql_stmt_attr_set(stmt, STMT_ATTR_PREBIND_PARAMS, &param_count))