-
Notifications
You must be signed in to change notification settings - Fork 46
no conversion between java.sql.Date and LocalDate #5
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
Comments
I've thought about it before and I think you're right. However, due to the way conversions work in the library, we need to think about it more carefully. This conversion loses information when going I definitely think it would be beneficial having |
I agree with you, and from the java types you're definitely right (about gaining and losing implicit information). What makes this a bit of an awkward situation is that the "real" SQL date type (for example in PostgreSQL, does not have a timestamp even though
and even though in between some implicit information is added and removed, it turns out fine at both ends. But i agree that we need to think about it carefully :( |
@Heliosmaster - I've added a few more functions/conversions. Do you think we can close the issue now? |
Yeah thanks the issue can be closed :) |
I see no reason why there should not be a conversion between these two types.
The following code serve the purpose:
What do you think?
The text was updated successfully, but these errors were encountered: