Bug #721 | The ConnectorJ reconnect not working with 3.22.30 DB | ||
---|---|---|---|
Submitted: | 25 Jun 2003 9:58 | Modified: | 26 Jun 2003 7:53 |
Reporter: | Laszlo Szenttornyai | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | Connector/J 3.0 | OS: | Linux (linux) |
Assigned to: | Mark Matthews | CPU Architecture: | Any |
[25 Jun 2003 9:58]
Laszlo Szenttornyai
[26 Jun 2003 6:20]
Mark Matthews
You don't say what version of Connector/J 3.0 you are using in this bug report (there are 8, plus nightly snapshots). It would help if you could tell me what version you are using. > - remove the reconnect feature You shouldn't use the feature if it doesn't have the behavior you expect. Other people depend on this feature working as it currently does. It is not enabled by default, so don't enable it if you don't want to use it. > - properly handle the transaction isolation request According to the JDBC spec, this method can not be a no-op if the database doesn't support transaction isolation and must throw an exception. You are using an old (3.23.30) version of MySQL that does not support transaction isolation. You should consider upgrading to a newer version of MySQL. > - classify the excpetion This is already fixed in Connector/J 3.1, and the fix will be backported to Connector/J 3.0.9. Thank you for your bug report.
[26 Jun 2003 7:41]
Laszlo Szenttornyai
Sorry, the JDBC version where I can verify this bug is the latest stable: mysql-connector-java-3.0.8-stable.zip + mysql 3.22.30 Upgrading the mysql server is not an option for me, even I love to fix this problem that way.
[26 Jun 2003 7:53]
Mark Matthews
I've fixed the code that tries to set transaction isolation on reconnect so that it won't attempt to do that on old MySQL versions. It will be available in Connector/J 3.0.9 and Connector/J 3.1.1, or you can download a nightly snapshot after 00:00 GMT today from http://mmmysql.sourceforge.net/snapshots/