Skip to content

Commit

Permalink
Remove error check after result is obtained. Fixes alexbrainman#199
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvin committed Sep 4, 2024
1 parent 1b0af60 commit 5b9890c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@ func (c *Conn) wrapQuery(ctx context.Context, os *ODBCStmt, dargs []driver.Value

os.usedByRows = true
rowsChan <- &Rows{os: os}

// At the end of the execution, we check if the context has been cancelled
// to ensure the caller doesn't end up waiting for a message indefinitely (L119)
if ctx.Err() != nil {
errorChan <- ctx.Err()
}
}

// namedValueToValue is a utility function that converts a driver.NamedValue into a driver.Value.
Expand Down

0 comments on commit 5b9890c

Please sign in to comment.