-
Notifications
You must be signed in to change notification settings - Fork 195
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
@Query
doesn't escape reserved keywords
#2872
Labels
type: improvement
A minor improvement to an existing feature
Comments
@dstepanov @radovanradic maybe we could create a dictionary of reserved words per dialect |
We don't want to parse queries more than we do now (just to replace binding). If you use a custom query, you should be doing escaping; I'm not sure why, in this case, the escaping disappears. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
If a method is annotated with
@Query
, I would expect the query to escape reserved keywords. For example:user
is a reserved name in PostgreSQL.Actual Behaviour
The
user
table is not escaped. Even if you use the following query:The converted query removes escaping.
Steps To Reproduce
No response
Environment Information
No response
Example Application
No response
Version
4.6.2
The text was updated successfully, but these errors were encountered: