This is the first Generally Available (GA) release.
Functionality added or changed:
The interface of
sql::ConnectionMetaData,sql::ResultSetMetaDataandsql::ParameterMetaDatawas modified to have a protected destructor. As a result the client code has no need to destruct the metadata objects returned by the connector. MySQL Connector/C++ handles the required destruction. This enables statements such as:connection->getMetaData->getSchema();
This avoids potential memory leaks that could occur as a result of losing the pointer returned by
getMetaData().Improved memory management. Potential memory leak situations are handled more robustly.
Changed the interface of
sql::Driverandsql::Connectionso they accept the options map by alias instead of by value.Changed the return type of
sql::SQLException::getSQLState()fromstd::stringtoconst char *to be consistent withstd::exception::what().Implemented
getResultSetType()andsetResultSetType()forStatement. UsesTYPE_FORWARD_ONLY, which means unbuffered result set andTYPE_SCROLL_INSENSITIVE, which means buffered result set.Implemented
getResultSetType()forPreparedStatement. The setter is not implemented because currentlyPreparedStatementcannot do refetching. Storing the result means the bind buffers will be correct.Added the option
defaultStatementResultTypetoMySQL_Connection::setClientOption(). Also, the method now returnssql::Connection *.Added
Result::getType(). Implemented for the three result set classes.Enabled tracing functionality when building with Microsoft Visual C++ 8 and later, which corresponds to Microsoft Visual Studio 2005 and later.
Added better support for named pipes, on Windows. Use
pipe://and add the path to the pipe. Shared memory connections are currently not supported.
Bugs fixed:
A bug was fixed in
MySQL_Connection::setSessionVariable(), which had been causing exceptions to be thrown.