You've already forked mariadb-connector-c
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user