MySQL Connector/J 5.1 Release Notes
Added a toString()
method to the
PreparedStatementWrapper
class to help debug
prepared statements.
(Bug #42267, Bug #11751418)
An out of memory error occurred when the compression protocol
was enabled with the connection option
useCompression=true
. This fix stops the
memory leak that caused the error by making sure that
CompressedInputStream
releases its reference
to the connection object when the input stream closes.
(Bug #68400, Bug #16478043)
The results returned by the method
DatabaseMetaData.getIndexInfo()
were not
sorted in the order described in the JDBC specification
(NON_UNIQUE, TYPE, INDEX_NAME, and ORDINAL_POSITION).
(Bug #68098, Bug #16224299)
DatabaseMetaData.getColumns()
threw an
MySQLSyntaxErrorException
if the schema
contains tables with ANSI quoted names with leading and trailing
back quotes (`). When those names were passed as parameters in
unquoted form, Connector/J treated them as quoted because of the
back quotes, and thus the error. This fix adds the behavior that
when the connection property pedantic
was set
to true
, methods like
DatabaseMetaData.getColumns()
treat all
parameters as unquoted.
(Bug #65871, Bug #14598704)
Connector/J silently ignored calls to
ResultSet.updateRow
when the cursor was on
the insert row. This fix ensures that an
SQLException
is thrown with those calls, as
described in the JDBC specification.
(Bug #45757, Bug #11754192)