Skip to content
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

hibernate.jdbc.time_zone support for Time #857

Merged
merged 4 commits into from
Jun 15, 2021

Conversation

DavideD
Copy link
Member

@DavideD DavideD commented Jun 14, 2021

Fixes #856 ... sort of

This is what I would do and it seems consistent to what happens with ORM and MySQL (after a quick test).

I think OffsetTime is the one that's weird, because when we return the value it won't match the original Timezone.

@DavideD DavideD requested a review from gavinking June 14, 2021 12:57
@DavideD DavideD force-pushed the 856-mysql-time branch 2 times, most recently from 106bf04 to 3edd38d Compare June 14, 2021 12:58
@gavinking
Copy link
Member

gavinking commented Jun 14, 2021

Well, OK, I agree that this is the most sane thing to do if we really have to support this setting, but it's not compatible with what core does, it's a different behavior.

@DavideD
Copy link
Member Author

DavideD commented Jun 15, 2021

Well, OK, I agree that this is the most sane thing to do if we really have to support this setting, but it's not compatible with what care does, it's a different behavior.

Good enough for me :-)

We cannot apply a timezone to a time without a date,
this probably the best we can do without throwing
an exception.
When the test suite is fast enough, they might match.
So `isAfter` doesn't work all the times.
@DavideD DavideD merged commit afb429f into hibernate:main Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hibernate.jdbc.time_zone unsupported on TIME columns
2 participants