Skip to content

Commit e621cd9

Browse files
author
Thomas Lee
committed
Use COM_STMT_CLOSE instead of COM_STMT_RESET in Statement.Close().
1 parent 3c1f411 commit e621cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ func (s *Statement) Close() (err os.Error) {
609609
// Reset client
610610
s.reset()
611611
// Send command
612-
err = s.c.command(COM_STMT_RESET, s.statementId)
612+
err = s.c.command(COM_STMT_CLOSE, s.statementId)
613613
return
614614
}
615615

0 commit comments

Comments
 (0)