commit | 4fc3896e7933e31822caa50e024d4e139befc75f | [log] [tgz] |
---|---|---|
author | Shinnosuke Sawada <6warashi9@gmail.com> | Mon Aug 17 20:37:51 2020 +0900 |
committer | Daniel Theophanes <kardianos@gmail.com> | Sat Aug 29 09:20:35 2020 +0000 |
tree | 614d5460b8a3653159d156653ff042572d8e2d1e | |
parent | 27a30186abc18a8fc22b8ab40e3ee9f29d81c1d4 [diff] |
database/sql: shortestIdleTimeLocked correct min comparison When zero or less, maxIdleTime and maxLifetime means unlimited. Helper function shortestIdleTimeLocked must not return the minimum of the two until both are verified to be greater then zero. Fixes #40841 Change-Id: I1130332baf4ad259cd90c10f4221f5def8510655 Reviewed-on: https://go-review.googlesource.com/c/go/+/248817 Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.