From 8b686330da3e359fce7c7bd7bf75c14c66cc28b2 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 1 Feb 2021 03:37:01 +0200 Subject: [PATCH] Update SessionHandle.cpp --- vendor/POCO/Data/MySQL/src/SessionHandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/POCO/Data/MySQL/src/SessionHandle.cpp b/vendor/POCO/Data/MySQL/src/SessionHandle.cpp index 9734ce9e..d8bdc291 100644 --- a/vendor/POCO/Data/MySQL/src/SessionHandle.cpp +++ b/vendor/POCO/Data/MySQL/src/SessionHandle.cpp @@ -183,7 +183,7 @@ void SessionHandle::rollback() void SessionHandle::reset() { -#if defined(HAVE_MYSQL_RESET_CONNECTION) && (((defined (MYSQL_VERSION_ID)) && (MYSQL_VERSION_ID >= 50700)) || ((defined (MARIADB_PACKAGE_VERSION_ID)) && (MARIADB_PACKAGE_VERSION_ID >= 30000))) +#if ((POCO_OS == POCO_OS_LINUX) && defined (HAVE_MYSQL_RESET_CONNECTION)) && (((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)