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

Cover scenario BEGIN TRANSACTION; COMMIT; BEGIN TRANSACTION; --failure #6562

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

simPod
Copy link
Contributor

@simPod simPod commented Oct 20, 2024

Q A
Type improvement
Fixed issues

Summary

Covers the concern expressed by @greg0ire #6545 (comment)

Transaction should not be rolled back in autocommit=false mode when BEGIN TRANSACTION fails due to network error or similar after COMMIT.

@simPod simPod changed the title Fix typo in PostgreSql documentation reference Cover scenario `BEGIN TRANSACTION; COMMIT; BEGIN TRANSACTION --failure; Oct 20, 2024
@simPod simPod changed the title Cover scenario `BEGIN TRANSACTION; COMMIT; BEGIN TRANSACTION --failure; Cover scenario BEGIN TRANSACTION; COMMIT; BEGIN TRANSACTION; --failure Oct 20, 2024
tests/ConnectionTest.php Outdated Show resolved Hide resolved
@simPod simPod force-pushed the cover-failure branch 2 times, most recently from 30ead0b to 0e2fa82 Compare October 20, 2024 14:30
tests/ConnectionTest.php Outdated Show resolved Hide resolved
@greg0ire greg0ire requested a review from morozov October 21, 2024 09:27
derrabus pushed a commit that referenced this pull request Oct 21, 2024
|      Q       |   A
|------------- | -----------
| Type         | improvement
| Fixed issues | <!-- use #NUM format to reference an issue -->

#### Summary

_This is a followup of https://github.com/doctrine/dbal/pull/6558_, I
have touched only what previous PR touched.

@greg0ire
[requested](#6562 (review))
to use stubs where there are no expectations


![image](https://github.com/user-attachments/assets/f71ad45f-87f7-4575-b10d-2f46b2c6525a)
@greg0ire greg0ire added this to the 3.9.4 milestone Oct 21, 2024
@greg0ire greg0ire merged commit b753557 into doctrine:3.9.x Oct 21, 2024
97 of 98 checks passed
@simPod simPod deleted the cover-failure branch October 21, 2024 20:01
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