mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-03 15:58:23 +02:00
Use mysql_refresh() instead of mysql_reset_connection()
This commit is contained in:
parent
5fc6c904bd
commit
fc5f1684d5
@ -178,7 +178,7 @@ void SessionHandle::rollback()
|
|||||||
|
|
||||||
void SessionHandle::reset()
|
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);
|
throw TransactionException("Reset connection failed.", _pHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user