Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Messenger] fix compatibility with Doctrine DBAL 4#52476

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:5.4fromxabbuh:doctrine-dbal-6191
Nov 7, 2023

Conversation

xabbuh
Copy link
Member

QA
Branch?5.4
Bug fix?no
New feature?no
Deprecations?no
Issues
LicenseMIT

@xabbuh
Copy link
MemberAuthor

seedoctrine/dbal#6191

@derrabus
Copy link
Member

The idea behind that feature was that Symfony could leverage the query builder for building the "skip locked rows" query.

@xabbuhxabbuhforce-pushed thedoctrine-dbal-6191 branch 4 times, most recently from97aacef to2f059e0CompareNovember 7, 2023 07:55
@xabbuh
Copy link
MemberAuthor

Thanks for your feedback. I guess it's better now.

if (preg_match('/FROM (.+) WHERE/', (string) $sql, $matches)) {

if (method_exists(QueryBuilder::class, 'forUpdate')) {
$query->forUpdate();
Copy link
Member

Choose a reason for hiding this comment

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

For the case of the oracle platform, this is now applying the lock on the inner query and not the outer one (see the specific code below). Is this expected ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

it's probably better not to change the outcome here, updated

@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commita454d0c intosymfony:5.4Nov 7, 2023
@xabbuhxabbuh deleted the doctrine-dbal-6191 branchNovember 7, 2023 10:21
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@stofstofstof approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
5.4
Development

Successfully merging this pull request may close these issues.

5 participants
@xabbuh@derrabus@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp