Bugs fixed:
Implemented
Clob.setString().Added
com.mysql.jdbc.MiniAdminclass, which enables you to sendshutdowncommand to MySQL server. This is intended to be used when “embedding” Java and MySQL server together in an end-user application.Added SSL support. See
READMEfor information on how to use it.All
DBMDresult set columns describing schemas now returnNULLto be more compliant with the behavior of other JDBC drivers for other database systems (MySQL does not support schemas).Use
SHOW CREATE TABLEwhen possible for determining foreign key information forDatabaseMetaData. Also enables cascade options forDELETEinformation to be returned.Implemented
Clob.setCharacterStream().Failover and
autoReconnectwork only when the connection is in anautoCommit(false)state, to stay transaction-safe.Fixed
DBMD.supportsResultSetConcurrency()so that it returnstrueforResultSet.TYPE_SCROLL_INSENSITIVEandResultSet.CONCUR_READ_ONLYorResultSet.CONCUR_UPDATABLE.Implemented
Clob.setAsciiStream().Removed duplicate code from
UpdatableResultSet(it can be inherited fromResultSet, the extra code for each method to handle updatability I thought might someday be necessary has not been needed).Fixed
UnsupportedEncodingExceptionthrown when “forcing” a character encoding using properties.Fixed incorrect conversion in
ResultSet.getLong().Implemented
ResultSet.updateBlob().Removed some not-needed temporary object creation by smarter use of
StringsinEscapeProcessor,ConnectionandDatabaseMetaDataclasses.Escape
0x5ccharacter in strings for the SJIS charset.PreparedStatementnow honors stream lengths in setBinary/Ascii/Character Stream() unless you set the connection propertyuseStreamLengthsInPrepStmtstofalse.Fixed issue with updatable result sets and
PreparedStatementsnot working.Fixed start position off-by-1 error in
Clob.getSubString().Added
connectTimeoutparameter that enables users of JDK-1.4 and newer to specify a maximum time to wait to establish a connection.Fixed various non-ASCII character encoding issues.
Fixed
ResultSet.isLast()for empty result sets (should returnfalse).Added driver property
useHostsInPrivileges. Defaults totrue. Affects whether or not@hostnamewill be used inDBMD.getColumn/TablePrivileges.Fixed
ResultSet.setFetchDirection(FETCH_UNKNOWN).Added
queriesBeforeRetryMasterproperty that specifies how many queries to issue when failed over before attempting to reconnect to the master (defaults to 50).Fixed issue when calling
Statement.setFetchSize()when using arbitrary values.Properly restore connection properties when autoReconnecting or failing-over, including
autoCommitstate, and isolation level.Implemented
Clob.truncate().