From c984bd63cfc0ff33b674f7611a56e499627d95b8 Mon Sep 17 00:00:00 2001 From: alexcocia Date: Wed, 29 Mar 2023 11:42:12 +0200 Subject: [PATCH] Fixing Release Handle (#204) Changed usedByStmt to usedByRows, to solve direct queries release handle problem #203 and #145 --- conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.go b/conn.go index 658411d..7c19077 100644 --- a/conn.go +++ b/conn.go @@ -75,7 +75,7 @@ func (c *Conn) Query(query string, args []driver.Value) (driver.Rows, error) { os = &ODBCStmt{ h: h, Parameters: ps, - usedByStmt: true} + usedByRows: true} err = os.BindColumns() if err != nil { return nil, err