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

feat: EXPOSED-628 Add comment position for optimizer hints after SELECT #2294

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bog-walk
Copy link
Member

@bog-walk bog-walk commented Nov 4, 2024

Description

Summary of the change:
Allow a query comment to be appended to immediately after the SELECT keyword, in addition to either before or after the query entirely.

Detailed description:


Type of Change

Please mark the relevant options with an "X":

  • New feature

Affected databases:

  • All - technically, but test example only uses MySQL optimizer hints

Checklist

  • Unit tests are in place
  • The build is green (including the Detekt check)
  • All public methods affected by my PR has up to date API docs
  • Documentation for my change is up to date

Related Issues

EXPOSED-628

- Adds AFTER_SELECT to enum class CommentPosition so that things like optimizer
hints can be added as a comment on SELECT queries.
- Updates KDocs for comment()
- Adds append section to Query.prepareSQL()
- Add unit test.
@bog-walk bog-walk requested a review from joc-a November 4, 2024 02: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.

1 participant