Bug #33147 mysql_library_init() ignores argv/argc in non-embedded

Submitted: 11 Dec 2007 18:30
Reporter: Sergei Golubchik Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S4 (Feature request)
Version: OS:Any
Assigned to: CPU Architecture:Any

[11 Dec 2007 18:30] Sergei Golubchik
Description:
The C-API is supposed to be the same for the embedded and client-server libraries.
But the very first function to use mysql_library_init(argc, argv, groups) ignores its arguments in the client-server library, but uses in embedded.

This creates an asymmetry that complicates writing programs that could be linked with both libraries.

How to repeat:
.

Suggested fix:
create a function mysql_read_default_options_from_argv_argc_groups(). Move most of mysql_read_default_options() into it. Call it from both mysql_server_init() (in non-embedded case) and from mysql_read_default_options(). In the mysql_server_init() it'll store the options in the static struct st_mysql_options.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.