Commit 8f9e2ab5 authored by Sam Whited's avatar Sam Whited Committed by Brad Fitzpatrick

database/sql: add doc comment for ErrTxDone

Change-Id: Idffb82cdcba4985954d061bdb021217f47ff4985
Reviewed-on: https://go-review.googlesource.com/29850Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 9ed0715b
...@@ -1224,6 +1224,8 @@ type Tx struct { ...@@ -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") var ErrTxDone = errors.New("sql: Transaction has already been committed or rolled back")
func (tx *Tx) close(err error) { func (tx *Tx) close(err error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment