aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql.go
diff options
context:
space:
mode:
authorEugene Kalinin <e.v.kalinin@gmail.com>2018-06-06 18:01:02 +0300
committerDaniel Theophanes <kardianos@gmail.com>2018-06-06 18:18:20 +0000
commit9e4c344c72125f93a35b60e13c9c149eac27eb55 (patch)
tree197ac2c3ba34752feb3f7157433c9e2996c7b79e /src/database/sql/sql.go
parent235c5cf153a6d6f19d1377071ed3b56c62c74883 (diff)
downloadgo-9e4c344c72125f93a35b60e13c9c149eac27eb55.tar.xz
database/sql: update doc related to per-connection state
Fixes #25330 Change-Id: I41b5b3459ed7808d18112ec02d734e2268099a81 Reviewed-on: https://go-review.googlesource.com/116596 Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Diffstat (limited to 'src/database/sql/sql.go')
-rw-r--r--src/database/sql/sql.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go
index 96d7742a3c..1e7a989089 100644
--- a/src/database/sql/sql.go
+++ b/src/database/sql/sql.go
@@ -340,8 +340,8 @@ var ErrNoRows = errors.New("sql: no rows in result set")
//
// The sql package creates and frees connections automatically; it
// also maintains a free pool of idle connections. If the database has
-// a concept of per-connection state, such state can only be reliably
-// observed within a transaction. Once DB.Begin is called, the
+// a concept of per-connection state, such state can be reliably observed
+// within a transaction (Tx) or connection (Conn). Once DB.Begin is called, the
// returned Tx is bound to a single connection. Once Commit or
// Rollback is called on the transaction, that transaction's
// connection is returned to DB's idle connection pool. The pool size