Skip to content

[4.x] Return the connection when withConnection throws - #1798

Merged
tsegismont merged 1 commit into
4.xfrom
backport/1767-to-4.x
Nov 12, 2026
Merged

tsegismont merged 1 commit into
4.xfrom
backport/1767-to-4.x

Conversation

@tsegismont

Copy link
Copy Markdown
Member

Backport of #1767 to 4.x
Cherry-picked commit: 50aaa8a

A function that threw instead of returning a failed future left the
connection borrowed for good, unlike withTransaction.

Assisted-by: Anthropic Claude (claude-opus-5-5)

Signed-off-by: Sharang Gupta <sharang@sharanggupta.dev>
(cherry picked from commit 50aaa8a)
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont
tsegismont merged commit ab9e2df into 4.x Nov 12, 2026
18 checks passed
@tsegismont
tsegismont deleted the backport/1767-to-4.x branch November 12, 2026 17:16
@tsegismont tsegismont added this to the 4.5.37 milestone Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants