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
  • database
  • sql
  • sql.go
Find file BlameHistoryPermalink
  • Daniel Theophanes's avatar
    database/sql: fix nil pointer use within withLock · 78583a12
    Daniel Theophanes authored Dec 21, 2017
    During the refactor in 1126d148 I
    introduced a logical error within one withLock function that used
    the result of the call before checking for the error. Change
    the order so that the error is checked before the result is used.
    
    None of the other withLock uses have similar issues.
    
    Fixes #23208
    
    Change-Id: I6c5dcf262e36bad4369c850f1e0131066360a82e
    Reviewed-on: https://go-review.googlesource.com/85175
    
    
    Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarCaleb Spare <cespare@gmail.com>
    Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
    78583a12
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7