Bug #12585 | mysql-gui-common does not build against MySQL 4.0.x | ||
---|---|---|---|
Submitted: | 15 Aug 2005 15:39 | Modified: | 19 Sep 2005 17:31 |
Reporter: | Keith Richardson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Administrator | Severity: | S3 (Non-critical) |
Version: | 1.0.22a | OS: | Other (OpenBSD 3.7) |
Assigned to: | CPU Architecture: | Any |
[15 Aug 2005 15:39]
Keith Richardson
[17 Aug 2005 19:00]
Jorge del Conde
I was able to reproduce this bug when building under FC4 w/4.0.23 from bk
[19 Sep 2005 17:31]
Alfredo Kojima
Hi Thanks for the report. I have fixed the bug by placing the breaking code between #ifdefs That code is only important for embedded MySQL uses, which isnt supported in MySQL 4.0 anyway.
[21 Sep 2005 1:03]
Keith Richardson
I have successfully built mysql-admin against mysql server in 3.7 i386 packages. The full steps will be submitted to openbsd users mailing list and http://www.openbsdsupport.org. I have not looked at what is in source code repository but the following worked for me: $ diff -u ./mysql-gui-common/library/source/myx_library.c.dist ./mysql-gui-common/library/source/myx_library.c --- ./mysql-gui-common/library/source/myx_library.c.dist Tue Sep 20 18:54:13 2005 +++ ./mysql-gui-common/library/source/myx_library.c Tue Sep 20 18:54:45 2005 @@ -581,11 +581,14 @@ //of mysql_real_connect are in utf8 //mysql_options(mysql, MYSQL_SET_CHARSET_NAME, "utf8"); +#if defined(MYSQL_VESION_ID) && (MYSQL_VERSION_ID >= 40101) 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, user_conn->port,