You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
Fix Win64 warnings. Correctly define my_socket in ma_global.h
This commit is contained in:
@@ -179,7 +179,7 @@ static int bulk3(MYSQL *mysql)
|
||||
MYSQL_STMT *stmt= mysql_stmt_init(mysql);
|
||||
size_t row_size= sizeof(struct st_bulk3);
|
||||
int array_size= 3;
|
||||
size_t length= -1;
|
||||
ulong length= -1;
|
||||
|
||||
rc= mysql_query(mysql, "DROP TABLE IF EXISTS bulk3");
|
||||
check_mysql_rc(rc,mysql);
|
||||
|
@@ -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, ¶m_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, ¶m_count))
|
||||
|
@@ -3418,7 +3418,7 @@ static int test_double_compare(MYSQL *mysql)
|
||||
|
||||
tiny_data= 1;
|
||||
strcpy(real_data, "10.2");
|
||||
length[1]= strlen(real_data);
|
||||
length[1]= (ulong)strlen(real_data);
|
||||
double_data= 34.5;
|
||||
rc= mysql_stmt_bind_param(stmt, my_bind);
|
||||
check_stmt_rc(rc, stmt);
|
||||
|
Reference in New Issue
Block a user