... | ... |
@@ -89,6 +89,9 @@ struct my_con* new_connection(struct db_id* id) |
89 | 89 |
goto err; |
90 | 90 |
} |
91 | 91 |
|
92 |
+ /* Enable reconnection explicitly */ |
|
93 |
+ ptr->con->reconnect = 1; |
|
94 |
+ |
|
92 | 95 |
DBG("new_connection: Connection type is %s\n", mysql_get_host_info(ptr->con)); |
93 | 96 |
DBG("new_connection: Protocol version is %d\n", mysql_get_proto_info(ptr->con)); |
94 | 97 |
DBG("new_connection: Server version is %s\n", mysql_get_server_info(ptr->con)); |