1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

- Unittests: link static library instead of dynamic

- TLS/SSL: renamed HAVE_SSL to HAVE_TLS to avoid trouble in
  10.2-integration
- Fixed wrong timeout in non-blocking mode
- Fixed valgrind error in prepared statement
This commit is contained in:
Georg Richter
2016-03-28 10:29:55 +02:00
parent 2004962331
commit bea035a72b
18 changed files with 89 additions and 139 deletions

View File

@@ -211,10 +211,10 @@ static int test_view_2where(MYSQL *mysql)
strcpy(parms[i], "1");
my_bind[i].buffer_type = MYSQL_TYPE_VAR_STRING;
my_bind[i].buffer = (char *)&parms[i];
my_bind[i].buffer_length = 100;
my_bind[i].buffer_length = 1;
my_bind[i].is_null = 0;
my_bind[i].length = &length[i];
length[i] = 1;
my_bind[i].length = &length[i];
}
stmt= mysql_stmt_init(mysql);
rc= mysql_stmt_prepare(stmt, query, strlen(query));
@@ -687,8 +687,8 @@ struct my_tests_st my_tests[] = {
int main(int argc, char **argv)
{
// if (argc > 1)
// get_options(&argc, &argv);
if (argc > 1)
get_options(argc, argv);
get_envvars();