Bug #80522 | Using useCursorFetch leads to data corruption in Connector/J for TIME type | ||
---|---|---|---|
Submitted: | 26 Feb 2016 9:17 | Modified: | 22 Mar 2016 2:10 |
Reporter: | Jakub W | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 5.1.38 (exists since 5.1.1) | OS: | Ubuntu |
Assigned to: | Filipe Silva | CPU Architecture: | Any |
Tags: | defaultFetchSize, time, timestamp, useCursorFetch |
[26 Feb 2016 9:17]
Jakub W
[26 Feb 2016 10:48]
Andrii Nikitin
Verified as described with MySQL 5.6.27 . The problem output happens also without defaultFetchSize in connection string like below: Statement statement = connection.createStatement(); statement.setFetchSize(1); ResultSet resultSet = statement.executeQuery(sql); Any non-zero argument to setFetchSize() triggers the problem.
[18 Mar 2016 11:41]
Jakub W
Hi Guys, can we expect maintenance release any soon? This is important issue for us. Thanks. -- Jakub
[22 Mar 2016 2:10]
Daniel So
Added the following entry to the Connector/J 5.1.39 changelog: "For connections with useCursorFetch=true and fetch size set with defaultFetchSize or setFetchSize, if data from a TIME and a BLOG data column was selected together, corrupted value for the TIME data was returned."
[22 Mar 2016 14:25]
Daniel So
Corrected the changelog entry to the following: "For connections with useCursorFetch=true and fetch size set with defaultFetchSize or setFetchSize, if data from a TIME and a BLOB data column was selected together, corrupted value for the TIME data was returned."
[20 Apr 2016 0:41]
monty solomon
You wrote > Added the following entry to the Connector/J 5.1.39 changelog: but the changelog does not contain any entries Changes in MySQL Connector/J 5.1.39 (Not yet released) The https://dev.mysql.com/doc/relnotes/connector-j/5.1/en/news-5-1-39.html
[20 Apr 2016 8:59]
Filipe Silva
Subscribe to the Connector/J notifications list (http://lists.mysql.com/java) to be informed as soon as the next release gets published.
[21 Apr 2016 22:53]
Daniel So
Changelog entries will appear on https://dev.mysql.com/doc/relnotes/connector-j/5.1/en/news-5-1-39.html soon after release of the version.