-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Query: Skip with Count always returns 0 #7523
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Comments
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Feb 4, 2017
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Feb 6, 2017
…ated SQL - Resolves dotnet#2341 - Resolves dotnet#5085 - Resolves dotnet#5230 - Resolves dotnet#6618 - Resolves dotnet#6647 - Resolves dotnet#6782 - Resolves dotnet#7080 - Resolves dotnet#7220 - Resolves dotnet#7417 - Resolves dotnet#7497 - Resolves dotnet#7523 - Resolves dotnet#7525
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Feb 6, 2017
…ated SQL - Resolves dotnet#2341 - Resolves dotnet#5085 - Resolves dotnet#5230 - Resolves dotnet#6618 - Resolves dotnet#6647 - Resolves dotnet#6782 - Resolves dotnet#7080 - Resolves dotnet#7220 - Resolves dotnet#7417 - Resolves dotnet#7497 - Resolves dotnet#7523 - Resolves dotnet#7525
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Feb 6, 2017
…ated SQL - Resolves dotnet#2341 - Resolves dotnet#5085 - Resolves dotnet#6618 - Resolves dotnet#6647 - Resolves dotnet#6782 - Resolves dotnet#7080 - Resolves dotnet#7220 - Resolves dotnet#7417 - Resolves dotnet#7497 - Resolves dotnet#7523 - Resolves dotnet#7525
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Feb 6, 2017
…ated SQL - Resolves dotnet#2341 - Resolves dotnet#5085 - Resolves dotnet#6618 - Resolves dotnet#6647 - Resolves dotnet#6782 - Resolves dotnet#7080 - Resolves dotnet#7220 - Resolves dotnet#7417 - Resolves dotnet#7497 - Resolves dotnet#7523 - Resolves dotnet#7525
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Feb 7, 2017
…ated SQL - Resolves dotnet#2341 - Resolves dotnet#5085 - Resolves dotnet#6618 - Resolves dotnet#6647 - Resolves dotnet#6782 - Resolves dotnet#7080 - Resolves dotnet#7220 - Resolves dotnet#7417 - Resolves dotnet#7497 - Resolves dotnet#7523 - Resolves dotnet#7525
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Feb 9, 2017
…ated SQL - Resolves dotnet#2341 - Resolves dotnet#5085 - Resolves dotnet#6618 - Resolves dotnet#6647 - Resolves dotnet#6782 - Resolves dotnet#7080 - Resolves dotnet#7220 - Resolves dotnet#7417 - Resolves dotnet#7497 - Resolves dotnet#7523 - Resolves dotnet#7525
4 tasks
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Feb 9, 2017
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Feb 10, 2017
smitpatel
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Feb 10, 2017
ajcvickers
changed the title
Skip with Count always returns 0
Query: Skip with Count always returns 0
May 9, 2017
divega
added
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
and removed
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
labels
May 10, 2017
@archanasoni If you are still using RowNumberForPaging, could you please comment on issue #13959 and let us know why? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
We are working to have Core support for IBM EntityFramework Provider.
For one of our internal test application, we have to skip few rows and and return remaining total number of rows.
Our query is:
context.ArchTable1.OrderBy(c=>c.Id).Skip(1).Count()
It always returns output:
skip count 0
We have used UseRowNumberForPaging() via optionsBuilder.
The similar Application when we run against SQL Server 2008, we do see same issue.
Generated SQL is:
SELECT [t].[c0]
FROM (
SELECT COUNT(*) AS [c0], ROW_NUMBER() OVER(ORDER BY @@rowcount) AS [RowNumber]
FROM [ArchTable1] AS [a]
) AS [t]
WHERE [t].[RowNumber] > 1
With manual modification in above query, if we run from SQL management Studio it returns the desired output:
SELECT COUNT(*) AS [c0] from
(select ROW_NUMBER() OVER(ORDER BY @@rowcount) AS [RowNumber]
FROM [ArchTable1] AS [a]
) AS [t]
WHERE [t].[RowNumber] > 1
Now questions are:
The text was updated successfully, but these errors were encountered: