Skip to content

Commit

Permalink
args assigned and not used (#575)
Browse files Browse the repository at this point in the history
* args assigned and not used

* add to AUTHORS
  • Loading branch information
astaxie authored and julienschmidt committed Apr 28, 2017
1 parent c775fbc commit 147bd02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

Aaron Hopkins <go-sql-driver at die.net>
Arne Hormann <arnehormann at gmail.com>
Asta Xie <xiemengjun at gmail.com>
Carlos Nieto <jose.carlos at menteslibres.net>
Chris Moos <chris at tech9computers.com>
Daniel Nichter <nil at codenode.com>
Expand Down
2 changes: 0 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 147bd02

Please sign in to comment.