Browse code

- enable reconnection explicitly Closes: SER-80

Jan Janak authored on 30/01/2006 16:49:51
Showing 1 changed files
... ...
@@ -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));