]> Cypherpunks repositories - gostls13.git/commit
database/sql: close rows in test
authorguoguangwu <guoguangwug@gmail.com>
Mon, 18 Mar 2024 05:20:00 +0000 (05:20 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 19 Mar 2024 11:20:27 +0000 (11:20 +0000)
commit0b7b90cf198b17dd2d164e3bf013aa5846356b55
treef82ccb9ac0bce9116b86daaf7d6a116d6082fd11
parent8496060870f86b06f8f189c2a709769846b7554e
database/sql: close rows in test

This change invokes defer rows.Close() in TestQuery to properly close the rows.

Change-Id: I1ab0d172ad2130e9caab7dbda93d671550c33c6b
GitHub-Last-Rev: 76883a3bceefb80873e57150356a4acc001ee1a3
GitHub-Pull-Request: golang/go#66371
Reviewed-on: https://go-review.googlesource.com/c/go/+/572197
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/database/sql/sql_test.go