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

Fix for CONC-71: mysql_real_query crashes after server restart

- We now check socket status before net_flush (and return error if the socket is dead)
This commit is contained in:
holzboote@googlemail.com
2014-02-04 20:09:23 +01:00
parent 8c0a7fff46
commit db14156eb7
7 changed files with 109 additions and 41 deletions

View File

@@ -65,6 +65,9 @@ static int test_logs(MYSQL *mysql)
int rc;
short id;
rc= mysql_query(mysql, "SET session sql_mode=''");
check_mysql_rc(rc, mysql);
rc= mysql_query(mysql, "DROP TABLE IF EXISTS test_logs");
check_mysql_rc(rc, mysql);