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

Add support for Oracle 12 limit/offset syntax #1397

Merged
merged 1 commit into from
Jul 14, 2017
Merged

Add support for Oracle 12 limit/offset syntax #1397

merged 1 commit into from
Jul 14, 2017

Conversation

timon
Copy link
Contributor

@timon timon commented Jul 14, 2017

  • Add special hanling for limit N offset 0

Oracle query optimizer can not recognize ROWNUM < 10 when ROWNUM is
aliased in subquery.

Adding special check for offset being 0 eliminates subquery, allowing
database to detect COUNT STOPKEY operation

  • Use new syntax for FETCH NEXT ROWS for Oracle starting with v12, unless locking is used

* Add special hanling for limit N offset 0

Oracle query optimizer can not recognize ROWNUM < 10 when ROWNUM is
aliased in subquery.

Adding special check for offset being 0 eliminates subquery, allowing
database to detect COUNT STOPKEY operation

* Use new syntax for FETCH NEXT ROWS for Oracle starting with v12, unless locking is used
@timon timon changed the title Add support for Oracle 12 limit/offset syntax (#1) Add support for Oracle 12 limit/offset syntax Jul 14, 2017
@jeremyevans
Copy link
Owner

Thanks for the patch. This looks good, I'll merge and test later today.

@jeremyevans jeremyevans merged commit 0175e04 into jeremyevans:master Jul 14, 2017
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.

None yet

2 participants