Bugs fixed:
Inconsistent reporting of data type. The server still doesn't return all types for *BLOBs *TEXT correctly, so the driver won't return those correctly. (Bug#3570)
UpdatableResultSetnot picking up default values formoveToInsertRow(). (Bug#3557)Not specifying database in URL caused
MalformedURLexception. (Bug#3554)Auto-convert MySQL encoding names to Java encoding names if used for
characterEncodingproperty. (Bug#3554)Use
junit.textui.TestRunnerfor all unit tests (to enable them to be run from the command line outside of Ant or Eclipse). (Bug#3554)Added encoding names that are recognized on some JVMs to fix case where they were reverse-mapped to MySQL encoding names incorrectly. (Bug#3554)
Made
StringRegressionTest4.1-unicode aware. (Bug#3520)Fixed regression in
PreparedStatement.setString()and eastern character encodings. (Bug#3520)DBMD.getSQLStateType()returns incorrect value. (Bug#3520)Renamed
StringUtils.escapeSJISByteStream()to more appropriateescapeEasternUnicodeByteStream(). (Bug#3511)StringUtils.escapeSJISByteStream()not covering all eastern double-byte charsets correctly. (Bug#3511)Return creating statement for
ResultSetscreated bygetGeneratedKeys(). (Bug#2957)Use
SET character_set_resultsduring initialization to enable any charset to be returned to the driver for result sets. (Bug#2670)Don't truncate
BLOBorCLOBvalues when usingsetBytes()andsetBinary/CharacterStream(). (Bug#2670)Dynamically configure character set mappings for field-level character sets on MySQL-4.1.0 and newer using
SHOW COLLATIONwhen connecting. (Bug#2670)Map
binarycharacter set toUS-ASCIIto supportDATETIMEcharset recognition for servers >= 4.1.2. (Bug#2670)Use
charsetnrreturned during connect to encode queries before issuingSET NAMESon MySQL >= 4.1.0. (Bug#2670)Add helper methods to
ResultSetMetaData(getColumnCharacterEncoding()andgetColumnCharacterSet()) to permit end users to see what charset the driver thinks it should be using for the column. (Bug#2670)Only set
character_set_resultsfor MySQL >= 4.1.0. (Bug#2670)Allow
urlparameter forMysqlDataSourceandMysqlConnectionPoolDataSourceso that passing of other properties is possible from inside appservers.Don't escape SJIS/GBK/BIG5 when using MySQL-4.1 or newer.
Backport documentation tooling from 3.1 branch.
Added
failOverReadOnlyproperty, to enable the user to configure the state of the connection (read-only/writable) when failed over.Allow
java.util.Dateto be sent in as parameter toPreparedStatement.setObject(), converting it to aTimestampto maintain full precision. . (Bug#103)Add unsigned attribute to
DatabaseMetaData.getColumns()output in theTYPE_NAMEcolumn.Map duplicate key and foreign key errors to SQLState of
23000.Backported “change user” and “reset server state” functionality from 3.1 branch, to enable clients of
MysqlConnectionPoolDataSourceto reset server state ongetConnection()on a pooled connection.