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

fixes offset limit duplication fo sqlServer #490

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

brunoAltinet
Copy link
Contributor

this fixes when different skip/take is used on a same query

Fixes #433

often a case when doing batching

@brunoAltinet brunoAltinet changed the title fixes offset limit duplication fixes offset limit duplication fo sqlServer Jul 24, 2023
@@ -2914,6 +2914,9 @@ public async Task ShouldPageResults()
{
Assert.Equal(1, String.Compare(ordered[i].SomeName, ordered[i - 1].SomeName));
}

//query should discard previous skip/take
Assert.Equal(5, (await query.Skip(10).Take(5).ListAsync()).Count());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we create a new test for this?

@sebastienros sebastienros merged commit f4a680b into sebastienros:main Oct 11, 2023
1 check failed
sebastienros added a commit that referenced this pull request Oct 11, 2023
sebastienros added a commit that referenced this pull request Oct 11, 2023
@sebastienros
Copy link
Owner

I reverted it since it was failing the PostgreSQL tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sqlbuilder generates multiple "limit" and "offset" clause when invoke ToSqlBuilder multiple times
3 participants