From 147bd02c2c516cf9a8878cb75898ee8a9eea0228 Mon Sep 17 00:00:00 2001 From: astaxie Date: Sat, 29 Apr 2017 00:02:31 +0800 Subject: [PATCH] args assigned and not used (#575) * args assigned and not used * add to AUTHORS --- AUTHORS | 1 + connection.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 97ae23d51..a6b845f72 100644 --- a/AUTHORS +++ b/AUTHORS @@ -13,6 +13,7 @@ Aaron Hopkins Arne Hormann +Asta Xie Carlos Nieto Chris Moos Daniel Nichter diff --git a/connection.go b/connection.go index 08e5fadeb..cdce3e30f 100644 --- a/connection.go +++ b/connection.go @@ -272,7 +272,6 @@ func (mc *mysqlConn) Exec(query string, args []driver.Value) (driver.Result, err return nil, err } query = prepared - args = nil } mc.affectedRows = 0 mc.insertId = 0 @@ -330,7 +329,6 @@ func (mc *mysqlConn) Query(query string, args []driver.Value) (driver.Rows, erro return nil, err } query = prepared - args = nil } // Send command err := mc.writeCommandPacketStr(comQuery, query)