fix: preserve rollback errors in runTx (#24598)

Previously, `runTx` could lose a deferred rollback failure when returning an
existing transaction error, because the rollback path could not update the final
return value.

https://go.dev/play/p/AhBK31lO0Gd
This commit is contained in:
George K
2026-04-30 10:27:53 -07:00
committed by GitHub
parent 97cc83c83e
commit fb6e00de18
4 changed files with 32 additions and 1 deletions
+1
View File
@@ -105,6 +105,7 @@ replace github.com/openai/openai-go/v3 => github.com/kylecarbs/openai-go/v3 v3.0
require (
cdr.dev/slog/v3 v3.0.0
cloud.google.com/go/compute/metadata v0.9.0
github.com/DATA-DOG/go-sqlmock v1.5.2
github.com/Microsoft/go-winio v0.6.2
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
github.com/adrg/xdg v0.5.0