MySQLニュース

MySQL Connector/J 5.0.7が リリースされました。

オリジナル版:http://lists.mysql.com/java/9106

MySQL Connector/J 5.0.7(MySQL用のタイプ4のall-Java JDBCドライバの最新バージョン)が リリースされました。

これはConnector/Jの現在の商品版におけるバグ修正リリースです。

バージョン5.0.7は、MySQL-4.1、MySQL-5.0、MySQL-5.1ベータ版、MySQL-6.0ファルコンプレビュー用を含んだいくつかのMySQLのバージョンでの使用にふさわしいリリースです。

バージョン5.0.7は、http://dev.mysql.com/downloads/connector/j/5.0.htmlおよびミラーサイトのConnector/Jダウンロードページからソースおよびバイナリ形式で入手可能です。(すべてのミラーサイトが現在において最新であるとは限らないかもしれないことに注意してください。あるミラーサイトでこのバージョンを見つけることができない場合は、再度確認を行うか、あるいは別のダウンロード・サイトを選択してください。)

いつものことですが、アプリケーションに影響を及ぼす動作変更を把握するには、アップグレードの前に、マニュアルの変更ログ(http://dev.mysql.com/doc/refman/5.0/en/cj-news.html)と"Upgrading"の節(http://dev.mysql.com/doc/refman/5.0/en/cj-upgrading.html)をチェックするようお勧めします。

バグレポート、バグ修正、パッチ等の情報をお待ちしておりますので、以下のページをご利用ください。

http://forge.mysql.com/wiki/Contributing

- ------------------------------
Functionality added or changed
- ------------------------------

Setting the configuration parameter "useCursorFetch" to "true" for MySQL-5.0+ enables the
use of cursors that allow Connector/J to save memory by fetching result set rows in
chunks (where the chunk size is set by calling setFetchSize() on a Statement or
ResultSet) by using fully-materialized cursors on the server. The driver will will now
automatically set "useServerPrepStmts" to "true" when "useCursorFetch" has been set to
true, since the feature requires server-side prepared statements in order to function.

Added configuration property "useNanosForElapsedTime" - for profiling/debugging
functionality that measures elapsed time, should the driver try to use nanoseconds
resolution if available (requires JDK >= 1.5)?

Added configuration property "slowQueryThresholdNanos" - if "useNanosForElapsedTime" is
set to "true", and this property is set to a non-zero value the driver will use this
threshold (in nanosecond units) to determine if a query was slow, instead of using
millisecond units.

Added configuration properties to allow tuning of TCP/IP socket parameters:

  tcpNoDelay - Should the driver set SO_TCP_NODELAY (disabling the Nagle Algorithm,
default true)?

  tcpKeepAlive - Should the driver set SO_KEEPALIVE (default true)?

  tcpRcvBuf - Should the driver set SO_RCV_BUF to the given value? The default value of
'0',
means use the platform default value for this property.

  tcpSndBuf - Should the driver set SO_SND_BUF to the given value? The default value of
'0', means use the platform default value for this property.

  tcpTrafficClass - Should the driver set traffic class or type-of-service fields? See the
documentation for java.net.Socket.setTrafficClass() for more information.

Give more information in EOFExceptions thrown out of MysqlIO (how many bytes the driver
expected to read, how many it actually read, say that communications with the server were
unexpectedly lost).

Setting "useDynamicCharsetInfo" to "false" now causes driver to use static lookups for
collations as well (makes ResultSetMetadata.isCaseSensitive() much more efficient, which
leads to performance increase for ColdFusion, which calls this method for every column on
every table it sees, it appears).

Driver detects when it is running in a ColdFusion MX server (tested with version 7), and
uses the configuration bundle coldFusion, which sets "useDynamicCharsetInfo" to "false"
(see previous entry), and sets useLocalSessionState and autoReconnect to true.

Added new debugging functionality - Setting configuration property
"includeInnodbStatusInDeadlockExceptions" to true will cause the driver to append the
output of SHOW ENGINE INNODB STATUS to deadlock-related exceptions, which will enumerate
the current locks held inside InnoDB.

- ----------
Bugs Fixed
- ----------

PreparedStatement.getMetaData() for statements containing leading one-line comments is not
returned correctly. As part of this fix, we also overhauled detection of DML for
executeQuery() and SELECTs for executeUpdate() in plain and prepared statements to be
aware of the same types of comments. (Bug#28469)

Parser in client-side prepared statements eats character following '/' if it's not a
multi-line comment. (Bug#28851)

Parser in client-side prepared statements runs to end of statement, rather than
end-of-line for '#' comments. Also added support for '--' single-line comments.
(Bug#28956)

Don't send any file data in response to LOAD DATA LOCAL INFILE if the feature is disabled
at the client side. This is to prevent a malicious server or man-in-the-middle from
asking the client for data that the client is not expecting. Thanks to Jan Kneschke for
discovering the exploit and Andrey "Poohie" Hristov, Konstantin Osipov and Sergei
Golubchik for discussions about implications and possible fixes. (Bug#29605)

MySQLや関連ソリューションに関するお問い合わせ、お見積などがございましたら、ご連絡ください。

お問い合わせ各MySQL保守サービス見積依頼スマートスタイルOSSストア

ページトップへ