-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Order by wrongly added to a native query #2620
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
the valid workaround is to remove parenthesis after ORDER BY |
another case where a workaround is not as trivial as when using native database functions:
spring data will add extra |
We are working on a parsing solution to better handle such situations that |
@lith-imad Your query appears to be Hibernate while the original reporter appears to be commenting on a SQL query. I have opened #2862 to separately track your issue. |
Since this involves native queries and not the new parsers (HQL/JPQL), I'm dropping the |
I'm removing the Frankly, this situation appears too complicated for |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Hello,
I have found an issue in 2.7.1 with adding
order by
by sort to a query that already has order by.It happens only in specific scenarios/combinations of the clauses. See the test method bellow.
It seems to be related to this change of the regex pattern: 6fd829c .
The issue is not present in 2.7.0.
The text was updated successfully, but these errors were encountered: