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
Fixes for Win64 build
This commit is contained in:
@@ -597,9 +597,9 @@ int test_connection_timeout(MYSQL *my)
|
||||
return FAIL;
|
||||
}
|
||||
elapsed= time(NULL) - start;
|
||||
diag("elapsed: %d", elapsed);
|
||||
diag("elapsed: %d, timeout: %d", elapsed, timeout);
|
||||
mysql_close(mysql);
|
||||
FAIL_IF(elapsed +1 > timeout, "timeout ignored")
|
||||
FAIL_IF(elapsed > timeout + 1, "timeout ignored")
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@@ -286,7 +286,7 @@ static int test_fetch_offset(MYSQL *mysql)
|
||||
stmt= mysql_stmt_init(mysql);
|
||||
FAIL_IF(!stmt, mysql_error(mysql));
|
||||
|
||||
rc= mysql_stmt_prepare(stmt, query, strlen(query));
|
||||
rc= mysql_stmt_prepare(stmt, query, (unsigned long)strlen(query));
|
||||
check_stmt_rc(rc,stmt);
|
||||
|
||||
memset(my_bind, '\0', sizeof(my_bind));
|
||||
|
Reference in New Issue
Block a user