| Bug #105211 | class java.time.LocalDate cannot be cast to class java.sql.Date | ||
|---|---|---|---|
| Submitted: | 13 Oct 2021 16:01 | Modified: | 17 Dec 2021 1:11 |
| Reporter: | Oussama Sakri | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / J | Severity: | S3 (Non-critical) |
| Version: | 8.0.26 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | LocalDate Date | ||
[13 Oct 2021 16:01]
Oussama Sakri
[14 Oct 2021 7:00]
MySQL Verification Team
Hello Oussama Sakri, Thank you for the report and feedback. regards, Umesh
[17 Dec 2021 1:11]
Daniel So
Posted by developer: Added the following entry to the Connector/J 8.0.28 changelog: "Storing a java.time.LocalDate object onto the server as a DATE value using a batched PreparedStatement failed with the complaint that java.time.LocalDate could not be cast to java.sql.Date. With this fix, the object is encoded correctly into a DATE value."
