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.0  /  Changes in MySQL Connector/C++ 1.0.5 (2009-04-21, General Availability)

Changes in MySQL Connector/C++ 1.0.5 (2009-04-21, General Availability)

This is the first General Availability (GA) release.

Functionality Added or Changed

  • The interface of sql::ConnectionMetaData, sql::ResultSetMetaData and sql::ParameterMetaData was modified to have a protected destructor. As a result the client code has no need to destruct the metadata objects returned by the connector. Connector/C++ handles the required destruction. This enables statements such as:


    This avoids potential memory leaks that could occur as a result of losing the pointer returned by getMetaData().

  • Improved memory management. Handling of potential memory leak situations is more robust.

  • Changed the interface of sql::Driver and sql::Connection so they accept the options map by alias instead of by value.

  • Changed the return type of sql::SQLException::getSQLState() from std::string to const char * to be consistent with std::exception::what().

  • Implemented getResultSetType() and setResultSetType() for Statement. Uses TYPE_FORWARD_ONLY, which means unbuffered result set and TYPE_SCROLL_INSENSITIVE, which means buffered result set.

  • Implemented getResultSetType() for PreparedStatement. The setter is not implemented because currently PreparedStatement cannot do refetching. Storing the result means the bind buffers will be correct.

  • Added the option defaultStatementResultType to MySQL_Connection::setClientOption(). Also, the method now returns sql::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.