Use mysql_refresh() instead of mysql_reset_connection()

This commit is contained in:
Vojtěch Erben 2018-11-21 09:16:09 +01:00
parent 5fc6c904bd
commit fc5f1684d5

View File

@ -178,7 +178,7 @@ void SessionHandle::rollback()
void SessionHandle::reset()
{
if (mysql_reset_connection(_pHandle) != 0)
if (mysql_refresh(_pHandle, REFRESH_TABLES | REFRESH_STATUS | REFRESH_THREADS | REFRESH_READ_LOCK) != 0)
throw TransactionException("Reset connection failed.", _pHandle);
}