Bug #75250 C/C++ should provide build libmysqlclient and boost version macros.
Submitted: 17 Dec 2014 15:42 Modified: 5 Feb 2015 23:12
Reporter: Hemant Dangi Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / C++ Severity:S3 (Non-critical)
Version:1.1.5 OS:Any
Assigned to: Hemant Dangi CPU Architecture:Any

[17 Dec 2014 15:42] Hemant Dangi
Description:
C/C++ should provide libmysqlclient and boost version macros with which it is built.
So application using C/C++ could determine and load same version.

How to repeat:
boost or libmysqlclient version info missing.

Suggested fix:
Add boost and libmysqlclient version macros in version_info API headers.
[17 Dec 2014 15:49] Hemant Dangi
Committed revision 1016 for C/C++ version 1.1.6.

C/C++ should provide build libmysqlclient and boost version macros.
[18 Dec 2014 15:23] Paul DuBois
Hemant, what are the macro names?
[18 Dec 2014 15:32] Hemant Dangi
Paul,

New macro names are MYCPPCONN_STATIC_MYSQL_VERSION, MYCPPCONN_STATIC_MYSQL_VERSION_ID and MYCPPCONN_BOOST_VERSION.
[5 Feb 2015 23:12] Paul DuBois
Noted in 1.1.6 changelog.

Connector/C++ now provides macros to indicate the versions of
libraries against which it was built: MYCPPCONN_STATIC_MYSQL_VERSION
and MYCPPCONN_STATIC_MYSQL_VERSION_ID (MySQL client library version,
string and numeric), and MYCPPCONN_BOOST_VERSION (Boost library
version, numeric).