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: fix lock-and-fetch for MySQL #537

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

felixscheinost
Copy link
Contributor

Brief, plain english overview of your changes here

The support was nearly finished in #371 but later commented out due to "some issue [..] and limited time".

I tried to find out what those issues were and discovered that the syntax of the select was wrong. In MySQL the LIMIT comes before the FOR UPDATE SKIP LOCKED.

Using that fix Mysql8CompatibilityTest passes, I have done no further testing yet.

Fixes

#264

Reminders

  • Added/ran automated tests
  • Update README and/or examples (not applicable?)
  • Ran mvn spotless:apply

cc @kagkarlsson

The support was nearly finished in kagkarlsson#371 but later commented out due to "some issue [..] and limited time".

I tried to find out what those issues were and discovered that the syntax of the select was wrong. In MySQL the `LIMIT` comes before the `FOR UPDATE SKIP LOCKED`.

Using that fix `Mysql8CompatibilityTest` passes, I have done no further testing yet.
@kagkarlsson
Copy link
Owner

Wow, nice job! I just got to a point where time was running out and I just needed to merge the PR. So I took MySQL and MariaDB out again 😅. I really appreciate the effort of digging out the details and fixing it 🙏

Hopefully I can have a quick review of this next week, but looks good on first glance. Probably should refactor into some better form of query-builder, but that is a bit out-of-scope here..

Copy link
Owner

@kagkarlsson kagkarlsson left a comment

Choose a reason for hiding this comment

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

🙏

@kagkarlsson
Copy link
Owner

Frustratingly the option to run the build disappeared after approving. I will have to merge blind and hope the tests run, else I might need to revert..

@kagkarlsson kagkarlsson merged commit ddfa556 into kagkarlsson:master Nov 20, 2024
@kagkarlsson
Copy link
Owner

🎉 This issue has been resolved in v15.1.0 (Release Notes)

@kagkarlsson kagkarlsson added the released Issue has been released label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Issue has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants