Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
  • go
  • src
  • pkg
  • database
  • sql
  • sql.go
Find file BlameHistoryPermalink
  • Julien Schmidt's avatar
    database/sql: stop reuse of bad connections · 37b40dab
    Julien Schmidt authored Aug 23, 2012
    The second parameter for sql.putConn() (err) is always nil. As a result bad
    connections are reused, even if the driver returns an driver.ErrBadConn.
    Unsing a pointer to err instead achievs the desired behavior.
    See http://code.google.com/p/go/issues/detail?id=3777 for more details.
    Fixes #3777.
    
    R=golang-dev, dave, bradfitz, jameshuachow, BlakeSGentry
    CC=golang-dev
    https://golang.org/cl/6348069
    37b40dab
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7