Re-add TIP POCO changes.

Signed-off-by: Adam Capparelli <adam.capparelli@alumni.utoronto.ca>
This commit is contained in:
Adam Capparelli
2025-08-21 07:28:20 -04:00
parent 02c86d4cdd
commit 0bcabbf48f
8 changed files with 56 additions and 2 deletions

View File

@@ -188,7 +188,9 @@ void SessionHandle::autoCommit(bool val)
void SessionHandle::reset()
{
#if ((defined (MYSQL_VERSION_ID)) && (MYSQL_VERSION_ID >= 50700)) || ((defined (MARIADB_PACKAGE_VERSION_ID)) && (MARIADB_PACKAGE_VERSION_ID >= 30000))
#if (defined(BROKEN_MYSQL_RESET))
if (mysql_refresh(_pHandle, REFRESH_TABLES | REFRESH_STATUS | REFRESH_THREADS | REFRESH_READ_LOCK) != 0)
#elif ((defined (MYSQL_VERSION_ID)) && (MYSQL_VERSION_ID >= 50700)) || ((defined (MARIADB_PACKAGE_VERSION_ID)) && (MARIADB_PACKAGE_VERSION_ID >= 30000))
if (mysql_reset_connection(_pHandle) != 0)
#else
if (mysql_refresh(_pHandle, REFRESH_TABLES | REFRESH_STATUS | REFRESH_THREADS | REFRESH_READ_LOCK) != 0)