Skip to content

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