diff --git a/components/db_ido_mysql/idomysqlconnection.cpp b/components/db_ido_mysql/idomysqlconnection.cpp index 53d4fe778..a2c4c171b 100644 --- a/components/db_ido_mysql/idomysqlconnection.cpp +++ b/components/db_ido_mysql/idomysqlconnection.cpp @@ -44,7 +44,7 @@ void IdoMysqlConnection::Start(void) m_Connected = false; - m_QueryQueue.SetExceptionCallback(&IdoMysqlConnection::ExceptionHandler); + m_QueryQueue.SetExceptionCallback(boost::bind(&IdoMysqlConnection::ExceptionHandler, this, _1)); m_TxTimer = boost::make_shared(); m_TxTimer->SetInterval(5); diff --git a/components/db_ido_pgsql/idopgsqlconnection.cpp b/components/db_ido_pgsql/idopgsqlconnection.cpp index 5887bb06b..86ad7f5a7 100644 --- a/components/db_ido_pgsql/idopgsqlconnection.cpp +++ b/components/db_ido_pgsql/idopgsqlconnection.cpp @@ -44,7 +44,7 @@ void IdoPgsqlConnection::Start(void) m_Connection = NULL; - m_QueryQueue.SetExceptionCallback(&IdoPgsqlConnection::ExceptionHandler); + m_QueryQueue.SetExceptionCallback(boost::bind(&IdoPgsqlConnection::ExceptionHandler, this, _1)); m_TxTimer = boost::make_shared(); m_TxTimer->SetInterval(5);