Permalink
Browse files

Use COM_STMT_CLOSE instead of COM_STMT_RESET in Statement.Close().

  • Loading branch information...
1 parent 3c1f411 commit e621cd9c6def41f3b76a208d894a44f3a0ac766f Thomas Lee committed May 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 statement.go
View
@@ -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
}

0 comments on commit e621cd9

Please sign in to comment.