-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R2dbcCustomConversions converts LocalDate/LocalDateTime/Instant values to java.util.Date #207
Comments
That sounds like a bug in Spring Data R2DBC. Can you attach a bit more code that would allow us reproducing the issue? |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
@mp911de I am also encountering this issue. Here is a small repo that will reproduce the error: https://github.com/benarena/spring-r2dbc-date-error |
Thanks a lot. The issue is caused by Spring Data's default converters that enforce conversion from JSR-310 types to |
We now prevent converter registrations that enforce a conversion from JSR-310 types to java.util.Date. R2DBC drivers use natively JSR-310 types and some of them don't implement java.util.Date at all.
We now prevent converter registrations that enforce a conversion from JSR-310 types to java.util.Date. R2DBC drivers use natively JSR-310 types and some of them don't implement java.util.Date at all.
That's fixed now. |
i have the same problem now
|
@alfikr care to elaborate how conversion from |
there's error too. I've try to change to any other format. java.sql.Date still error |
Looks like spring data r2dbc converts fields with type
Instant
toDate
andLocalDateTime
toTimestamp
when i useand becuase r2dbc-myslq driver haven`t codes for them it leads to issue:
From driver mapping guidelines this types shouldn`t have codes: https://github.com/r2dbc/r2dbc-spi/blob/master/r2dbc-spec/src/main/asciidoc/data-types.adoc#datatypes.mapping.datetime
Our libs versions:
The text was updated successfully, but these errors were encountered: