Bug #101413 | java.time.LocalDateTime cannot be cast to java.sql.Timestamp | ||
---|---|---|---|
Submitted: | 2 Nov 2020 6:12 | Modified: | 18 Dec 2020 20:02 |
Reporter: | li leilei | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 8.0.22 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | e.LocalDateTime Timestamp |
[2 Nov 2020 6:12]
li leilei
[2 Nov 2020 6:56]
Alexander Soklakov
Hi li leilei, Thank you for the report. The problem is related to the recent fix for Bug#93444. Most probably it will be covered by the fix for Bug#95644.
[18 Dec 2020 20:02]
Daniel So
Posted by developer: Added the following entry to the Connector/J 8.0.23 changelog: "Storing a java.time.LoalDateTime object onto the server as a TIMESTAMP value using a batched PreparedStatement failed with the complaint that java.time.LocalDateTime could not be cast to java.sql.Timestamp. With this fix, the casting works again."
[11 Jan 2021 15:13]
Daniel So
Posted by developer: Corrected the changelog entry to the following: "Storing a java.time.LocalDateTime object onto the server as a TIMESTAMP value using a batched PreparedStatement failed with the complaint that java.time.LocalDateTime could not be cast to java.sql.Timestamp. With this fix, the casting works again."