Bug #72697 Support mysql_options4() or some way to set connection attributes
Submitted: 20 May 2014 22:22 Modified: 17 Jul 2014 14:08
Reporter: Alfredo Kojima Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / C++ Severity:S3 (Non-critical)
Version:1.1.3 OS:Any
Assigned to: CPU Architecture:Any

[20 May 2014 22:22] Alfredo Kojima
Description:
Conn/C++ provides no way of accessing http://dev.mysql.com/doc/refman/5.6/en/mysql-options4.html
Specifically, there\'s no way to set the MYSQL_OPT_CONNECT_ATTR_ADD attribute for the connection, so any program that uses Conn/C++ will just show up as libmysqlclient

How to repeat:
n/a

Suggested fix:
Either expose mysql_options4 in some way or provide a general method to set connection attributes.
[17 Jul 2014 14:08] Paul DuBois
Noted in 1.1.4 changelog.

Connector/C++ now supports the MYSQL_OPT_CONNECT_ATTR_ADD option for
mysql_options4(). The argument should be a std::map.