Generated sql query not sanitizing alias names #518
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-unknown
Milestone
In my user administration pages, I was trying to sort users by registered date and I was doing the following:
The above resulted in a sql query like (from SQL profiler):
Since user is a reserved word, this resulted in the following exception..after later changing
user
to something likeappUser
, it started working fine:Should we always sanitize the alias names that we generate..like in this case say
[user]
?The text was updated successfully, but these errors were encountered: