diff options
| author | Mostafa Solati <mostafa.solati@gmail.com> | 2021-08-03 21:39:29 +0430 |
|---|---|---|
| committer | Daniel Theophanes <kardianos@gmail.com> | 2021-11-03 23:48:28 +0000 |
| commit | 283373d124b39be62fb4dc0349ddf0cb1c99aeb7 (patch) | |
| tree | a49ad9f9bf4b805853bc81cf51f8e718ed367cd8 /src/database/sql | |
| parent | 1f368d5b860b178bcbd55dfeb64474295263516b (diff) | |
| download | go-283373d124b39be62fb4dc0349ddf0cb1c99aeb7.tar.xz | |
database/sql: fix tx.Prepare documentation
Fixes: #45978
Change-Id: I3d5ccd621d670f97bb1a642b4e84b6629347a315
Reviewed-on: https://go-review.googlesource.com/c/go/+/339291
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Trust: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/database/sql')
| -rw-r--r-- | src/database/sql/sql.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go index 897bca059b..5131c08b51 100644 --- a/src/database/sql/sql.go +++ b/src/database/sql/sql.go @@ -2364,8 +2364,8 @@ func (tx *Tx) PrepareContext(ctx context.Context, query string) (*Stmt, error) { // Prepare creates a prepared statement for use within a transaction. // -// The returned statement operates within the transaction and can no longer -// be used once the transaction has been committed or rolled back. +// The returned statement operates within the transaction and will be closed +// when the transaction has been committed or rolled back. // // To use an existing prepared statement on this transaction, see Tx.Stmt. // |
