QuerySyntaxException when sorting by a column using a JPQL reserved keyword



Related to Jira issue https://hibernate.atlassian.net/browse/HHH-11511,

I got the same error in 5.2.17 version,
But when I degrade this version to 5.2.9 it works,

I am confused why it works in lower version but not in the higher version.


You need to replicate it like this and send a Pull Request with the test case.

Afterwards, we will investigate it. Thanks.


Hii, it works for both configurations.