From 8f9e2ab55786d37158a3aaf27d054944e0742717 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Mon, 26 Sep 2016 20:23:36 -0500 Subject: [PATCH] database/sql: add doc comment for ErrTxDone Change-Id: Idffb82cdcba4985954d061bdb021217f47ff4985 Reviewed-on: https://go-review.googlesource.com/29850 Reviewed-by: Brad Fitzpatrick --- src/database/sql/sql.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go index 9d8afb01b0..1e09a313ac 100644 --- a/src/database/sql/sql.go +++ b/src/database/sql/sql.go @@ -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) {