Added a
toString()
method to thePreparedStatementWrapper
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 thatCompressedInputStream
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 anMySQLSyntaxErrorException
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 propertypedantic
was set totrue
, methods likeDatabaseMetaData.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 anSQLException
is thrown with those calls, as described in the JDBC specification. (Bug #45757, Bug #11754192)