Skip to content

Commit

Permalink
connection not closed when database name is incorrect microsoft#173 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
parMaster committed Oct 9, 2024
1 parent 02deabf commit 3b47a4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tds.go
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,7 @@ initiate_connection:
if token.isError() {
tokenErr := token.getError()
tokenErr.Message = "login error: " + tokenErr.Message
conn.Close()
return nil, tokenErr
}
case error:
Expand Down

0 comments on commit 3b47a4f

Please sign in to comment.