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:
true, this indicates to the driver that the application can
handle expired passwords.
If the application specifies
OPT_CAN_HANDLE_EXPIRED_PASSWORDS but the
libmysqlclient library does
not support it, the driver returns
preInit: A string containing queries to
run before driver initialization.
postInit: A string containing queries to
run after driver initialization.
A new file
driver/mysql_error.h is being
added to the MSI package. This file defines an
DRIVER_ERROR, which contains the definition of
In addition to the preceding changes, these problems with
Statement::executeUpdate were fixed:
multiple statements, the connection became unusable.
There was no exception if one of queries returned a
executeUpdate returns and
update count for the last executed query.
For example code showing how to use the new options, see the
test/unit/bugs/bugs.cpp in the
(Bug #67325, Bug #15936764)