Skip to content

Commit

Permalink
reset bound arguments when it is executed by execute command (#8645) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jackysp authored Dec 12, 2018
1 parent 128e736 commit dcfff79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/conn_stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func (cc *clientConn) handleStmtExecute(ctx context.Context, data []byte) (err e
}

err = parseStmtArgs(args, stmt.BoundParams(), nullBitmaps, stmt.GetParamsType(), paramValues)
stmt.Reset()
if err != nil {
return errors.Annotatef(err, "%s", cc.preparedStmt2String(stmtID))
}
Expand Down

0 comments on commit dcfff79

Please sign in to comment.