Skip to content
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

Fix error paginating queries containing the DISTINCT clause on SQL Server #983

Merged

Conversation

hprange
Copy link
Contributor

@hprange hprange commented May 13, 2022

The application throws an exception when building queries with pagination for SQL Server if the query has no ORDER BY clause and the DISTINCT clause is present. This fix takes only the first column name of the query to build an ORDER BY clause.

hprange added 2 commits May 13, 2022 17:15
…rver

The application throws an exception when building queries with pagination for SQL Server if the query has no `ORDER BY` clause and the `DISTINCT` clause is present. This fix takes only the first column name of the query to build an `ORDER BY` clause.
No change in behavior.
@darkv darkv merged commit 6829a78 into wocommunity:master Jun 3, 2022
@darkv
Copy link
Member

darkv commented Jun 3, 2022

@hprange Hi Henrique, does it still make sense to cherry pick this to Wonder6?

@hprange hprange removed the Wonder6 label Jun 3, 2022
@hprange
Copy link
Contributor Author

hprange commented Jun 3, 2022

@darkv Nah. Don't worry about that. If someone needs it in Wonder 6, they will shout. I removed the Wonder 6 label.

@hprange hprange deleted the bugfix/sql-server-pagination-with-distinct branch June 3, 2022 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants