You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using groupBy date the alias and field names in the generated SQL are not being properly escaped, resulting in an invalid query and failure.
With a backing Postgres data structure wherein the schema concerns a TypeORM ViewEntity class named UserRecord targeting the database schema tenant and view user.
After which an error is thrown by the database and introspection of the generated SQL for the query shows that the alias and field name in the TO_CHAR() function for the group by aggregate is not properly escaped in quotes, whereas the count aggregate is.
Describe the bug
When using groupBy date the alias and field names in the generated SQL are not being properly escaped, resulting in an invalid query and failure.
Have you read the Contributing Guidelines?
Yes.
To Reproduce
Steps to reproduce the behavior:
UserRecord
targeting the database schematenant
and viewuser
.After which an error is thrown by the database and introspection of the generated SQL for the query shows that the alias and field name in the
TO_CHAR()
function for the group by aggregate is not properly escaped in quotes, whereas the count aggregate is.Expected behavior
The generated SQL does not error and results are subsequently returned.
Desktop (please complete the following information):
v20.6.0
v4.3.3
The text was updated successfully, but these errors were encountered: