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

Connection::setNestTransactionsWithSavepoints() should not break lazy connection #6362

Merged
merged 1 commit into from Apr 25, 2024

Conversation

derrabus
Copy link
Member

Q A
Type bug
Fixed issues N/A

Summary

When calling Connection::setNestTransactionsWithSavepoints(), the platform is fetched to check if savepoints are actually supported. This is a problem because it might cause the connection to be opened.

I've removed the check which will postpone the exception to the first time we attempt to create a savepoint.

@derrabus derrabus added this to the 3.8.4 milestone Apr 19, 2024
@derrabus derrabus requested a review from greg0ire April 19, 2024 12:33
@derrabus derrabus changed the base branch from 4.0.x to 3.8.x April 19, 2024 12:49
@derrabus derrabus closed this Apr 19, 2024
@derrabus derrabus reopened this Apr 19, 2024
greg0ire
greg0ire previously approved these changes Apr 19, 2024
@derrabus derrabus merged commit b05e48a into doctrine:3.8.x Apr 25, 2024
92 checks passed
@derrabus derrabus deleted the bugfix/lazy-savepoints branch April 25, 2024 07:09
derrabus added a commit to derrabus/dbal that referenced this pull request Apr 25, 2024
* 3.8.x:
  Connection::setNestTransactionsWithSavepoints() should not break lazy connection (doctrine#6362)
  [Docs] Update docs regarding "datetimetz" type (doctrine#6014)
derrabus added a commit that referenced this pull request Apr 25, 2024
* 4.0.x:
  Connection::setNestTransactionsWithSavepoints() should not break lazy connection (#6362)
  [Docs] Update docs regarding "datetimetz" type (#6014)
derrabus added a commit that referenced this pull request Apr 25, 2024
* 4.1.x:
  Connection::setNestTransactionsWithSavepoints() should not break lazy connection (#6362)
  [Docs] Update docs regarding "datetimetz" type (#6014)
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.

None yet

3 participants