blob: 148e0fc88ba67762e57565d1c3f561fa16b0acf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff -Nur mysql-administrator-1.0.22a.orig/mysql-gui-common/library/source/myx_library.c mysql-administrator-1.0.22a/mysql-gui-common/library/source/myx_library.c
--- mysql-administrator-1.0.22a.orig/mysql-gui-common/library/source/myx_library.c 2005-06-06 16:12:15.000000000 +0200
+++ mysql-administrator-1.0.22a/mysql-gui-common/library/source/myx_library.c 2005-06-17 16:02:40.579309365 +0200
@@ -581,10 +581,12 @@
//of mysql_real_connect are in utf8
//mysql_options(mysql, MYSQL_SET_CHARSET_NAME, "utf8");
+#if MYSQL_VERSION_ID >= 40100
if (myx_mysql_get_private(mysql)->embedded)
mysql_options(mysql, MYSQL_OPT_USE_EMBEDDED_CONNECTION, (char *)1);
else
mysql_options(mysql, MYSQL_OPT_USE_REMOTE_CONNECTION, (char *)1);
+#endif
if (!mysql_real_connect(mysql, user_conn->hostname, user_conn->username,
user_conn->password, user_conn->schema,
|