mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
Reset connection when a session is returned to the SessionPool
This commit is contained in:
@@ -176,4 +176,11 @@ void SessionHandle::rollback()
|
||||
}
|
||||
|
||||
|
||||
void SessionHandle::resetConnection()
|
||||
{
|
||||
if (mysql_reset_connection(_pHandle) != 0)
|
||||
throw TransactionException("Reset connection failed.", _pHandle);
|
||||
}
|
||||
|
||||
|
||||
}}} // Poco::Data::MySQL
|
||||
|
||||
Reference in New Issue
Block a user