Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Messenger] support mysql 8.0 skip locked #51013

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

Closed
wants to merge 1 commit into from

Conversation

Ferror
Copy link
Contributor

@Ferror Ferror commented Jul 18, 2023

Q A
Branch? 6.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets none
License MIT
Doc PR symfony/symfony-docs#...

Introduction

I would like to propose adding the SKIP LOCKED for Messenger Doctrine Transport when using MySQL 8.0.

References

@carsonbot carsonbot added this to the 6.4 milestone Jul 18, 2023
@carsonbot carsonbot changed the title [messenger] support mysql 8.0 skip locked [Messenger] support mysql 8.0 skip locked Jul 18, 2023
$sql .= ' '.$databasePlatform->getWriteLockSQL();

if ($databasePlatform instanceof MySQL80Platform) {
$sql .= ' SKIP LOCKED';
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you write a teest for that please?

@derrabus
Copy link
Member

Duplicate of #50972.

@derrabus derrabus closed this Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants