Skip to content

Commit

Permalink
Use COM_STMT_CLOSE instead of COM_STMT_RESET in Statement.Close().
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lee committed May 31, 2011
1 parent 3c1f411 commit e621cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statement.go
Expand Up @@ -609,7 +609,7 @@ func (s *Statement) Close() (err os.Error) {
// Reset client
s.reset()
// Send command
err = s.c.command(COM_STMT_RESET, s.statementId)
err = s.c.command(COM_STMT_CLOSE, s.statementId)
return
}

Expand Down

0 comments on commit e621cd9

Please sign in to comment.