File mysql-connector-cpp-test-feature.patch of Package mysql-connector-cpp

Index: b/jdbc/driver/nativeapi/mysql_native_connection_wrapper.cpp
===================================================================
--- a/jdbc/driver/nativeapi/mysql_native_connection_wrapper.cpp
+++ b/jdbc/driver/nativeapi/mysql_native_connection_wrapper.cpp
@@ -479,7 +479,11 @@ int MySQL_NativeConnectionWrapper::get_p
 /* {{{ MySQL_NativeConnectionWrapper::has_query_attributes() */
 bool MySQL_NativeConnectionWrapper::has_query_attributes()
 {
+#ifdef CLIENT_QUERY_ATTRIBUTES
   return mysql->server_capabilities & CLIENT_QUERY_ATTRIBUTES;
+#else
+  return false;
+#endif
 }
 /* }}} */
 
openSUSE Build Service is sponsored by