Skip to content

Oracle: add subquery to apply sortBy before rownum paging - #7463 - #7464

Merged
jmckenna merged 7 commits into
MapServer:mainfrom
JamieIdox:main
Apr 25, 2026
Merged

jmckenna merged 7 commits into
MapServer:mainfrom
JamieIdox:main

Conversation

@JamieIdox

Copy link
Copy Markdown
Contributor

the main query is contained in the inner btmp sub query, rownum is moved to outside that query so that it is applied after the inner ORDER BY. I have tried to keep this change as simple as possible just by rearranging the existing code.

I am slightly concerned that we are missing a trailing AND from the removed code.

I have not been able to test or even build this as I don't have a build environment.

@JamieIdox

Copy link
Copy Markdown
Contributor Author

Thank you! 🙏

@jmckenna jmckenna added the backport branch-8-6 To backport a pull request to branch-8-6 label Mar 27, 2026
@jmckenna
jmckenna requested a review from msmitherdc March 27, 2026 14:26
@jmckenna jmckenna changed the title add oracle subquery to apply sortBy before rownum paging - #7463 Oracle: add subquery to apply sortBy before rownum paging - #7463 Mar 27, 2026

@msmitherdc msmitherdc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry I missed this waiting in me. Approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport branch-8-6 To backport a pull request to branch-8-6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants