Bug #73665 many connect options missing from Conn/C++

Submitted: 21 Aug 2014 8:58 Modified: 27 Oct 2014 16:49
Reporter: Hemant Dangi Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / C++ Severity:S3 (Non-critical)
Version:1.1.4 OS:Any
Assigned to: CPU Architecture:Any

[21 Aug 2014 8:58] Hemant Dangi
Description:
Following connect options missing from Connector/C++:
MYSQL_DEFAULT_AUTH
MYSQL_OPT_BIND
MYSQL_OPT_COMPRESS
MYSQL_OPT_CONNECT_ATTR_DELETE
MYSQL_OPT_CONNECT_ATTR_RESET
MYSQL_OPT_LOCAL_INFILE
MYSQL_OPT_SSL_ENFORCE
MYSQL_PLUGIN_DIR
MYSQL_READ_DEFAULT_FILE
MYSQL_READ_DEFAULT_GROUP
MYSQL_SET_CHARSET_DIR

connect:
CLIENT_REMEMBER_OPTIONS

How to repeat:
sql::Driver *driver = sql::mysql::get_driver_instance();
    
sql::ConnectOptionsMap connection_properties;
connection_properties["connection_option"]=value;
std::auto_ptr< sql::Connection > con(driver->connect(connection_properties));

Suggested fix:
These options need to be implemented.
[22 Oct 2014 7:45] Hemant Dangi
Posted by developer:
 
Added following missing connection options:
MYSQL_DEFAULT_AUTH, MYSQL_PLUGIN_DIR, MYSQL_SET_CHARSET_DIR, 
MYSQL_READ_DEFAULT_FILE, MYSQL_READ_DEFAULT_GROUP, 
MYSQL_OPT_CONNECT_ATTR_DELETE, MYSQL_OPT_CONNECT_ATTR_RESET, 
MYSQL_OPT_LOCAL_INFILE.
Also added max_statement_timeout for session based query timeout.
[22 Oct 2014 7:45] Hemant Dangi
Posted by developer:
 
Committed as rev#988.
[27 Oct 2014 16:49] Paul DuBois
Noted in 1.1.5 changelog.

The following connection options have been implemented:
MYSQL_DEFAULT_AUTH, MYSQL_OPT_CONNECT_ATTR_DELETE,
MYSQL_OPT_CONNECT_ATTR_RESET, MYSQL_OPT_LOCAL_INFILE,
MYSQL_PLUGIN_DIR, MYSQL_READ_DEFAULT_FILE, MYSQL_READ_DEFAULT_GROUP,
MYSQL_SET_CHARSET_DIR, and max_statement_timeout for session-based
query timeout.

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

Page generated in 0.053 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.