Skip to content

Conversation

@frbuceta
Copy link
Contributor

@frbuceta frbuceta commented Jan 19, 2020

If the supportsOffsetFetch is enabled, the generated SQL query is invalid as it does not comply with the expected syntax of a SELECT - ORDER BY Clause.

This PR resolves this issue by prepending the missing ORDER BY to OFFSET.

This PR was originally created by @achrinza

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Commit messages are following our guidelines

@frbuceta
Copy link
Contributor Author

ready for merge

Copy link
Contributor

@jannyHou jannyHou left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution! LGTM

@raymondfeng raymondfeng merged commit 69a1961 into loopbackio:master Jan 22, 2020
@frbuceta frbuceta deleted the fix/missing-order-by branch January 22, 2020 21:19
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.

4 participants