Skip to content

feat: support legacy pagination for SQL Server 2008 and earlier versions - #188

Open
iTanken wants to merge 1 commit into
go-gorm:masterfrom
iTanken:feature/fetch-next-pagination
Open

iTanken wants to merge 1 commit into
go-gorm:masterfrom
iTanken:feature/fetch-next-pagination

Conversation

@iTanken

@iTanken iTanken commented Oct 19, 2026

Copy link
Copy Markdown
Contributor
  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Support legacy pagination for SQL Server 2008 and earlier versions, automatic fallback based on version detection.

User Case Description

  • SQL Server 2012 and newer use the native OFFSET ... FETCH NEXT pagination syntax.
  • SQL Server 2008 / 2008 R2 and earlier automatically fallback to a legacy pagination strategy built from
    TOP() and ROW_NUMBER() over the generated query.

…ons (automatic fallback based on version detection)
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.

1 participant