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

Added mingw support (Win32). Special thanks to Eric Trinh for his patch!

This commit is contained in:
holzboote@googlemail.com
2014-01-11 20:09:32 +01:00
parent e2afef3163
commit a6ee40ab8e
8 changed files with 33 additions and 14 deletions

View File

@@ -522,10 +522,8 @@ static int test_reconnect(MYSQL *mysql)
diag("Thread_id before kill: %lu", mysql_thread_id(mysql1));
mysql_kill(mysql, mysql_thread_id(mysql1));
sleep(2);
sleep(4);
rc= mysql_query(mysql1, "SELECT 1 FROM DUAL LIMIT 0");
FAIL_IF(rc == 0, "error expected");
rc= mysql_query(mysql1, "SELECT 1 FROM DUAL LIMIT 0");
check_mysql_rc(rc, mysql1);
diag("Thread_id after kill: %lu", mysql_thread_id(mysql1));

View File

@@ -931,6 +931,16 @@ static int test_connect_attrs(MYSQL *my)
MYSQL_RES *result;
int rc, len;
rc= mysql_query(my, "SELECT * FROM performance_schema.session_connect_attrs LIMIT 1");
if (rc != 0)
{
diag("Server doesn't connection attributes");
return SKIP;
}
result= mysql_store_result(my);
mysql_free_result(result);
mysql= mysql_init(NULL);
mysql_options4(mysql, MYSQL_OPT_CONNECT_ATTR_ADD, "foo0", "bar0");