List:MySQL++« Previous MessageNext Message »
From:Heejin Ju Date:August 12 2010 5:00am
Subject:I fixed this problem by setting pending_options in disconnect().
View as plain text  
Hi

I use mysqlpp 3.1.0

execute() sometimes throw exceptions after calling disconnect() -> connect().
for example, execute stored procedure which has result set.

set_option_impl() is not called in connect() function.


void
DBDriver::disconnect()
{
	if (is_connected_) {
		mysql_close(&mysql_);
		memset(&mysql_, 0, sizeof(mysql_));
		is_connected_ = false;
		error_message_.clear();

        // added code begin
        pending_options_ = applied_options_;
        applied_options_.clear();
        // added code end
	}
}
Thread
I fixed this problem by setting pending_options in disconnect().Heejin Ju12 Aug
  • Re: I fixed this problem by setting pending_options in disconnect().Warren Young12 Aug