Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYjkwOGQ4NTE2...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16045?atlOrigin=eyJpIjoiYjkwOG...
) HHH-16045 (
https://hibernate.atlassian.net/browse/HHH-16045?atlOrigin=eyJpIjoiYjkwOG...
) ambiguity in grammar of HQL datetime literals (
https://hibernate.atlassian.net/browse/HHH-16045?atlOrigin=eyJpIjoiYjkwOG...
)
Issue Type: Bug Assignee: Unassigned Components: hibernate-core Created: 14/Jan/2023 09:40
AM Priority: Major Reporter: Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
I had made a really dumb mistake in the grammar, and was accepting literals of this form:
datetime 1974-03-25 12:30:00+10
and of course this can’t be distinguished from:
datetime 1974-03-25 12:30:00 + 10
I think I actually meant to make the minutes part of the offset required, and indeed the
docs suggest that it is required. But I didn’t do it.
Anyway, I’ve changed the grammar so that the minutes part of an offset is optional for the
braced syntax but not for the ANSI-inspired syntax.
(
https://hibernate.atlassian.net/browse/HHH-16045#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16045#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:b03f6a4 )