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

Index: mysql-workbench-community-6.3.9-src/plugins/migration/copytable/copytable.cpp
===================================================================
--- mysql-workbench-community-6.3.9-src.orig/plugins/migration/copytable/copytable.cpp
+++ mysql-workbench-community-6.3.9-src/plugins/migration/copytable/copytable.cpp
@@ -1749,7 +1749,10 @@ _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 MYSQL_CHECK_VERSION(5, 6, 6)
+#if MYSQL_CHECK_VERSION(5, 6, 6) && !defined(MARIADB_BASE_VERSION)
   if (is_mysql_version_at_least(5, 6, 6))
     mysql_options4(&_mysql, MYSQL_OPT_CONNECT_ATTR_ADD, "program_name", app_name.c_str());
 #endif
openSUSE Build Service is sponsored by