Functionality added or changed:
Implemented getScale()
,
getPrecision()
and
getColumnDisplaySize()
for
MySQL_ResultSetMetaData
and
MySQL_Prepared_ResultSetMetaData
.
Changed ResultSetMetaData
methods
getColumnDisplaySize()
,
getPrecision()
, getScale()
to return unsigned int
instead of
signed int
.
DATE
, DATETIME
and
TIME
are now being handled when calling the
MySQL_PreparedResultSet
methods
getString()
, getDouble()
,
getInt()
, getLong()
,
getBoolean()
.
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.
Implemented
MySQL_PreparedStatement::setNull()
.
Implemented
MySQL_PreparedStatement::clearParameters()
.
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
MySQL_ResultSetMetaData::getPrecision()
and
MySQL_Prepared_ResultSetMetaData::getPrecision()
,
updating example.
Added new unit test framework for JDBC compliance and regression testing.
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
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
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.
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 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 a bug in getString()
.
getString()
is now binary safe. A new example
was also added.
Fixed bug in FLOAT
handling.
Fixed MySQL_PreparedStatement::setBlob()
. In
the tests there is a simple example of a class implementing
sql::Blob
.
User Comments
Add your own comment.