Development Admin (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNTk5YjQ3OWVj...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15559?atlOrigin=eyJpIjoiNTk5Yj...
) HHH-15559 (
https://hibernate.atlassian.net/browse/HHH-15559?atlOrigin=eyJpIjoiNTk5Yj...
) Update query fails if there is no where (
https://hibernate.atlassian.net/browse/HHH-15559?atlOrigin=eyJpIjoiNTk5Yj...
)
Issue Type: Bug Affects Versions: 5.4.32, 5.6.11 Assignee: Unassigned Components:
query-criteria Created: 29/Sep/2022 07:52 AM Environment: Tomcat 9.0.41
Java Adoptium 17.0 Priority: Major Reporter: Development Admin (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
I use JPA standard criteria API.
If I do a query of update without where clause, it fails with error log
<AST>:0:0: unexpected end of subtree
I try versions 5.4.32 and 5.6.11 and both fails with this exception ( NoViableAltException
)
Sample of query is:
CriteriaBuilder criteriaBuilder = this.getEntityManager().getCriteriaBuilder();
CriteriaUpdate<Phone> update =
criteriaBuilder.createCriteriaUpdate(Phone.class);
update.from(Phone.class);
update.set(Phone_.synced, Boolean.FALSE);
If I add a where clause, the error disapears.
It seems related to
https://hibernate.atlassian.net/browse/HHH-15257 (
https://hibernate.atlassian.net/browse/HHH-15257 ).
(
https://hibernate.atlassian.net/browse/HHH-15559#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15559#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#100207- sha1:ee9e30a )