File mysql-workbench-mysql_options4.patch of Package mysql-workbench

Index: mysql-workbench-community-6.3.7-src/plugins/migration/copytable/copytable.cpp
===================================================================
--- mysql-workbench-community-6.3.7-src.orig/plugins/migration/copytable/copytable.cpp
+++ mysql-workbench-community-6.3.7-src/plugins/migration/copytable/copytable.cpp
@@ -1922,12 +1922,17 @@ _use_bulk_inserts(true), _bulk_insert_bu
     _incoming_data_charset = "latin1";
 
   mysql_init(&_mysql);
+  /* This is optional has compiled in for MySQL >= 5.6.6
+   * Looks like MariaDB does not support this as supposed,
+   * so disable completly. */
+#if 0
 #if defined(MYSQL_VERSION_MAJOR) && defined(MYSQL_VERSION_MINOR) && defined(MYSQL_VERSION_PATCH)
 #if MYSQL_CHECK_VERSION(5,6,6)
   if (is_mysql_version_at_least(5,6,6))
     mysql_options4(&_mysql, MYSQL_OPT_CONNECT_ATTR_ADD, "program_name", app_name.c_str());
 #endif
 #endif
+#endif
 
   // _bulk_insert_record is used to prepare a single record string, the connection
   // is needed to escape binary data properly
openSUSE Build Service is sponsored by