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

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

Conversation

felixscheinost
Copy link

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

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.

2 participants