mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
database/sql: add doc comment for ErrTxDone
Change-Id: Idffb82cdcba4985954d061bdb021217f47ff4985 Reviewed-on: https://go-review.googlesource.com/29850 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
9ed0715bb6
commit
8f9e2ab557
1 changed files with 2 additions and 0 deletions
|
|
@ -1224,6 +1224,8 @@ type Tx struct {
|
|||
}
|
||||
}
|
||||
|
||||
// ErrTxDone is returned by any operation that is performed on a transaction
|
||||
// that has already been committed or rolled back.
|
||||
var ErrTxDone = errors.New("sql: Transaction has already been committed or rolled back")
|
||||
|
||||
func (tx *Tx) close(err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue