(data []byte)
| 324 | } |
| 325 | |
| 326 | func (c *Conn) handleStmtReset(data []byte) (*Result, error) { |
| 327 | if len(data) < 4 { |
| 328 | return nil, ErrMalformPacket |
| 329 | } |
| 330 | |
| 331 | id := binary.LittleEndian.Uint32(data[0:4]) |
| 332 | |
| 333 | s, ok := c.stmts[id] |
| 334 | if !ok { |
| 335 | return nil, NewDefaultError(ER_UNKNOWN_STMT_HANDLER, |
| 336 | strconv.FormatUint(uint64(id), 10), "stmt_reset") |
| 337 | } |
| 338 | |
| 339 | s.ResetParams() |
| 340 | |
| 341 | return &Result{}, nil |
| 342 | } |
| 343 | |
| 344 | // stmt close command has no response |
| 345 | func (c *Conn) handleStmtClose(data []byte) error { |
no test coverage detected