Bug #82964 | JSR-310 data types created through java.sql types | ||
---|---|---|---|
Submitted: | 13 Sep 2016 5:57 | Modified: | 9 Mar 2017 4:59 |
Reporter: | Philippe Marschall | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 6.0.3 | OS: | Any |
Assigned to: | Filipe Silva | CPU Architecture: | Any |
[13 Sep 2016 5:57]
Philippe Marschall
[13 Sep 2016 8:14]
Alexander Soklakov
Hi Philippe, Thanks for the report, we'll take it into account while developing JSR-310 support, that work is still in progress.
[9 Mar 2017 4:59]
Daniel So
Posted by developer: Added the following entry to the Connector/J 6.0.6 changelog: "When Connector/J was reading a TIMESTAMP value into an instance of a JSR-310 data type, the reading was wrong when the time did not exist in the local time zone of the JVM due to a time change for Daylight Saving Time. It was because Connector/J created first a java.sql.Timestamp instance (which used the JVM's time zone) for the value and then converted it to, for example, java.time.LocalDateTime. With this fix, a JSR-310 object is created directly to avoid the conversion. "