diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index 4b1cc0197..16407e54d 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -1422,6 +1422,7 @@ bool MySQL_Session::handler_again___status_SETTING_INIT_CONNECT(int *_rc) { int rc=myconn->async_send_simple_command(myds->revents,myconn->options.init_connect,strlen(myconn->options.init_connect)); if (rc==0) { myds->revents|=POLLOUT; // we also set again POLLOUT to send a query immediately! + myds->free_mysql_real_query(); st=previous_status.top(); previous_status.pop(); NEXT_IMMEDIATE_NEW(st);