Bug #62394 | handle_options is no longer exported by libmysqlclient | ||
---|---|---|---|
Submitted: | 8 Sep 2011 23:12 | Modified: | 28 Aug 2013 13:25 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S3 (Non-critical) |
Version: | 5.5.15 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[8 Sep 2011 23:12]
[ name withheld ]
[9 Sep 2011 11:36]
MySQL Verification Team
Thank you for the bug report. c:\build\5.5-2011-09-06\libmysql\Release>dumpbin /EXPORTS libmysql.dll | findstr handle_options c:\build\5.5-2011-09-06\libmysql\Release>cd c:\build\5.1-2011-09-06\libmysql\Release c:\build\5.1-2011-09-06\libmysql\Release>dumpbin /EXPORTS libmysql.dll | findstr handle_options 10 9 00022F90 handle_options c:\build\5.1-2011-09-06\libmysql\Release>
[6 Dec 2011 21:38]
Vladislav Vaintroub
I think Paul (Dubois) should could publish caveats to his book and say that non-documented functions that do not have a well-known prefix mysql_ are not guaranteed to work. If they appear to work, they only work with static library. The mentioned functions have nothing to do with "client" or "connectivity" anyway. The purpose of client API was not providing framework for writing command line utilities or ini file parsers. This may have some useful functionality, but not something you would expect this from database connectivity libraries (that is, neither ODBC nor JDBC nor ADO.NET,Python, Ruby, not even Perl-DBI/DBD or your-favorite-language-database-library would provide such functionality to parse command lines). Just my opinion :)
[6 Dec 2011 21:38]
Vladislav Vaintroub
I think Paul (Dubois) should could publish caveats to his book and say that non-documented functions that do not have a well-known prefix mysql_ are not guaranteed to work. If they appear to work, they only work with static library. The mentioned functions have nothing to do with "client" or "connectivity" anyway. The purpose of client API was not providing framework for writing command line utilities or ini file parsers. This may have some useful functionality, but not something you would expect this from database connectivity libraries (that is, neither ODBC nor JDBC nor ADO.NET,Python, Ruby, not even Perl-DBI/DBD or your-favorite-language-database-library would provide such functionality to parse command lines). Just my opinion :)
[25 Sep 2012 11:40]
MySQL Verification Team
btw, this appears to work in 5.5.27 now
[28 Aug 2013 8:42]
Igor Solodovnikov
Posted by developer: Problem with missing handle_options was fixed in mysql-5.5.21. Following *documented* symbols were added to CLIENT_API_FUNCTIONS by the patch for bug#69204: my_init, mysql_client_find_plugin, mysql_client_register_plugin, mysql_load_plugin, mysql_load_plugin_v, mysql_options4, and mysql_plugin_options.
[28 Aug 2013 23:06]
Paul DuBois
Noted in 5.5.21 changelog.