Documentation Home
MySQL Connector/C++ Release Notes
Related Documentation Download these Release Notes
PDF (US Ltr) - 406.4Kb
PDF (A4) - 406.3Kb

MySQL Connector/C++ Release Notes  /  Changes in MySQL Connector/C++ 1.1  /  Changes in MySQL Connector/C++ 1.1.2 (2013-02-05, General Availability)

Changes in MySQL Connector/C++ 1.1.2 (2013-02-05, General Availability)

Functionality Added or Changed

  • Connector/C++ applications now can handle connecting to the server using an account for which the password had expired. Connector/C++ now supports three new connection options:

    • OPT_CAN_HANDLE_EXPIRED_PASSWORDS: If true, this indicates to the driver that the application can handle expired passwords.

      If the application specifies OPT_CAN_HANDLE_EXPIRED_PASSWORDS but the underlying libmysqlclient library does not support it, the driver returns sql::mysql:deCLIENT_DOESNT_SUPPORT_FEATURE(820).

    • preInit: A string containing statements to run before driver initialization.

    • postInit: A string containing statements to run after driver initialization.

    A new file driver/mysql_error.h is being added to the MSI package. This file defines an enum DRIVER_ERROR, which contains the definition of deCL_CANT_HANDLE_EXP_PWD.

    In addition to the preceding changes, these problems with Statement::executeUpdate were fixed:

    • If Statement::executeUpdate executed multiple statements, the connection became unusable.

    • There was no exception if one of statements returned a result set. Now executeUpdate returns and update count for the last executed query.

    For example code showing how to use the new options, see the file test/unit/bugs/bugs.cpp in the Connector/C++ distribution. (Bug #67325, Bug #15936764)