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

Shared lock syntax incompatible with MariaDB #2107

Open
tp971 opened this issue Feb 11, 2024 · 0 comments
Open

Shared lock syntax incompatible with MariaDB #2107

tp971 opened this issue Feb 11, 2024 · 0 comments

Comments

@tp971
Copy link

tp971 commented Feb 11, 2024

When selecting with a shared lock, e.g. Entity::find().lock_shared(), the generated query looks like SELECT ... FROM ... FOR SHARE, but MariaDB only supports the syntax SELECT ... FROM ... LOCK IN SHARE MODE (see https://mariadb.com/kb/en/select/). This is basically the old syntax for MySQL, so this issue might also occur with an old MySQL server. The current MySQL version supports both variants.

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

No branches or pull requests

1 participant