MySQL Connector/C++ Release Notes  /  Changes in MySQL Connector/C++ 1.0  /  Changes in MySQL Connector/C++ 1.0.2 (2008-12-19)

Changes in MySQL Connector/C++ 1.0.2 (2008-12-19)

Functionality Added or Changed

  • Implemented MySQL_PreparedStatement::clearParameters().

  • Reverted implementation of MySQL_DatabaseMetaData::getTypeInfo(). Now unimplemented. In addition, removed cppconn/datatype.h for now, until a more robust implementation of the types can be developed.

  • Added PHP script examples/cpp_trace_analyzer.php to filter the output of the debug trace. Please see the inline comments for documentation. This script is unsupported.

  • Implemented getScale(), getPrecision() and getColumnDisplaySize() for MySQL_ResultSetMetaData and MySQL_Prepared_ResultSetMetaData.

  • DATE, DATETIME and TIME are now being handled when calling the MySQL_PreparedResultSet methods getString(), getDouble(), getInt(), getLong(), getBoolean().

  • Changed ResultSetMetaData methods getColumnDisplaySize(), getPrecision(), getScale() to return unsigned int instead of signed int.

  • Implemented MySQL_PreparedStatement::setNull().

  • Added new unit test framework for JDBC compliance and regression testing.

  • Implemented MySQL_ResultSetMetaData::getPrecision() and MySQL_Prepared_ResultSetMetaData::getPrecision(), updating example.

  • Added test/unit as a basis for general unit tests using the new test framework, see test/unit/example for basic usage examples.

Bugs Fixed

  • Fixed bug in FLOAT handling.

  • Fixed bugs in MySQL_DatabaseMetaData. All supportsCatalogXXXXX methods were incorrectly returning true and all supportsSchemaXXXX methods were incorrectly returning false. Now supportsCatalogXXXXX returns false and supportsSchemaXXXXX returns true.

  • Fixed MySQL_PreparedStatementResultSet::getDouble() to return the correct value when the underlying type is MYSQL_TYPE_FLOAT.

  • Fixed bug in MySQL_ConnectionMetaData::getIndexInfo(). The method did not work because the schema name wasn't included in the query sent to the server.

  • Fixed a bug in getString(). getString() is now binary safe. A new example was also added.

  • Fixed bugs in the MySQL_PreparedStatements methods setBigInt() and setDatetime(). They decremented the internal column index before forwarding the request. This resulted in a double-decrement and therefore the wrong internal column index. The error message generated was:

    setString() ... invalid "parameterIndex"
  • Fixed MySQL_PreparedStatement::setBlob(). In the tests there is a simple example of a class implementing sql::Blob.

  • Fixed a bug in MySQL_ConnectionMetaData::getColumns() which was performing a cartesian product of the columns in the table times the columns matching columnNamePattern. The example example/connection_meta_schemaobj.cpp was extended to cover the function.

Download these Release Notes
PDF (US Ltr) - 75.2Kb
PDF (A4) - 74.2Kb
EPUB - 26.3Kb