Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

minor fix for MS SQL server (group by alias) #12

Merged
merged 1 commit into from May 29, 2017
Merged

minor fix for MS SQL server (group by alias) #12

merged 1 commit into from May 29, 2017

Conversation

Namoshek
Copy link

This PR fixes a small issue with MS SQL server. It seems as if grouping by a column alias is not supported by SQL server.

I did not test this fix with any other DBMS than MS SQL server. I don't see a reason why it should break compatibility with other DBMS, though, as operations on the actual column names should always work.

…lumn names,

not aliases

this fixes an issue with ms sql server, which does not seem to be able
to apply a group by statement on a column alias
not working:
  SELECT actual_col AS col_alias FROM x GROUP BY col_alias
working:
  SELECT actual_col AS col_alias FROM x GROUP BY actual_col
@coveralls
Copy link

Coverage Status

Coverage decreased (-4.9%) to 63.636% when pulling 7495815 on Namoshek:5.4 into b09cec6 on ultraware:master.

@Ricky-rick Ricky-rick merged commit a12e09c into ultraware:master May 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants