mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-10-31 02:27:56 +00:00 
			
		
		
		
	Fixing Broken MySQL Reset on Debian.
wq wq
This commit is contained in:
		| @@ -61,6 +61,10 @@ include(GNUInstallDirs) | |||||||
| # Include some common macros to simpilfy the Poco CMake files | # Include some common macros to simpilfy the Poco CMake files | ||||||
| include(PocoMacros) | include(PocoMacros) | ||||||
|  |  | ||||||
|  | if(BROKEN_MYSQL_RESET) | ||||||
|  | 	add_definitions(-DBROKEN_MYSQL_RESET=1) | ||||||
|  | endif() | ||||||
|  |  | ||||||
| if(POCO_STATIC) | if(POCO_STATIC) | ||||||
| 	message(WARNING "POCO_STATIC has been deprecated. Please use BUILD_SHARED_LIBS=NO to build static libraries.") | 	message(WARNING "POCO_STATIC has been deprecated. Please use BUILD_SHARED_LIBS=NO to build static libraries.") | ||||||
| 	option(BUILD_SHARED_LIBS "Build shared libraries" OFF) | 	option(BUILD_SHARED_LIBS "Build shared libraries" OFF) | ||||||
|   | |||||||
| @@ -183,7 +183,9 @@ void SessionHandle::rollback() | |||||||
|  |  | ||||||
| void SessionHandle::reset() | 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) | 	if (mysql_reset_connection(_pHandle) != 0) | ||||||
| #else | #else | ||||||
| 	if (mysql_refresh(_pHandle, REFRESH_TABLES | REFRESH_STATUS | REFRESH_THREADS | REFRESH_READ_LOCK) != 0) | 	if (mysql_refresh(_pHandle, REFRESH_TABLES | REFRESH_STATUS | REFRESH_THREADS | REFRESH_READ_LOCK) != 0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Debian
					Debian