From 0dd312a2387673da7234ace632dd979e37943084 Mon Sep 17 00:00:00 2001 From: Elvin Date: Wed, 4 Sep 2024 21:37:38 +0300 Subject: [PATCH] Remove error check after result is obtained. Fixes #199 --- conn.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/conn.go b/conn.go index eaa348f..12afce6 100644 --- a/conn.go +++ b/conn.go @@ -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.