MySQL Connector/C++ Release Notes

4.10 Changes in MySQL Connector/C++ 1.1.4 (2014-07-31, General Availability)

Compilation Notes

  • Binary distributions of this Connector/C++ release were compiled using Boost 1.54.0. If you compile this Connector/C++ release from source, you must also use that Boost version.

Functionality Added or Changed

  • Connector/C++ now supports the following connection options: sslVerify (boolean), sslCRL (string), and sslCRLPath (string). These correspond to the MYSQL_OPT_SSL_VERIFY_SERVER_CERT, MYSQL_OPT_SSL_CRL, and MYSQL_OPT_SSL_CRLPATH options for the mysql_options() C API function. (Bug #18461451)

  • Connector/C++ has new methods to provide schema, table, and column character set and collation metadata for result sets:

    • ResultSet * DatabaseMetaData::getSchemaCollation(const sql::SQLString& catalog, const sql::SQLString& schemaPattern)

    • ResultSet * DatabaseMetaData::getSchemaCharset(const sql::SQLString& catalog, const sql::SQLString& schemaPattern)

    • ResultSet * DatabaseMetaData::getTableCollation(const sql::SQLString& catalog, const sql::SQLString& schemaPattern, const sql::SQLString& tableNamePattern)

    • ResultSet * DatabaseMetaData::getTableCharset(const sql::SQLString& catalog, const sql::SQLString& schemaPattern, const sql::SQLString& tableNamePattern)

    • SQLString ResultSetMetaData::getColumnCollation(unsigned int columnIndex)

    • SQLString ResultSetMetaData::getColumnCharset(unsigned int columnIndex)

    (Bug #72698, Bug #18803345)

  • Connector/C++ now supports the OPT_CONNECT_ATTR_ADD option, which accepts an std::map argument. This option corresponds to the MYSQL_OPT_CONNECT_ATTR_ADD option for mysql_options4(). (Bug #72697, Bug #18803313)

  • Connector/C++ now supports a useLegacyAuth connection option, which corresponds to the MYSQL_SECURE_AUTH option for the mysql_options() C API function, except that the sense is the logical negation. For example, to disable secure authentication, pass a useLegacyAuth value of true. (Bug #69492, Bug #16970753)

Bugs Fixed

  • MySQL_ResultSetMetaData::getColumnTypeName() returned UNKNOWN for LONG_BLOB fields. (Bug #72700, Bug #18803414)

  • Definitions for character sets and collations were added (utf8mb4 in particular). (Bug #71606, Bug #18193771)

  • Connector/C++ version-information methods have been revised to return the correct values. (Bug #66975, Bug #14680878)