lib / pq

Pure Go Postgres driver for database/sql
https://pkg.go.dev/github.com/lib/pq
MIT License
9.11k stars 911 forks source link

Refactor rollback in commit #872

Closed jaym closed 5 years ago

jaym commented 5 years ago

Rollback cannot be called in Commit as the function that watches the context for cancelation assumes it is only ever called once. Calling it multiple times hangs the goroutine.

This is an alternative to #829.

Fixes #731 and #848 Replaces #829

Signed-off-by: Jay Mundrawala jmundrawala@chef.io

timbunce commented 5 years ago

Thank you!