Skip to content

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

Open
JamieIdox wants to merge 7 commits intoMapServer:mainfrom
JamieIdox:main
Open

Oracle: add subquery to apply sortBy before rownum paging - #7463#7464
JamieIdox wants to merge 7 commits intoMapServer:mainfrom
JamieIdox:main

Conversation

@JamieIdox
Copy link
Copy Markdown

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
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
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.

2 participants