stmt close command has no response
(data []byte)
| 343 | |
| 344 | // stmt close command has no response |
| 345 | func (c *Conn) handleStmtClose(data []byte) error { |
| 346 | if len(data) < 4 { |
| 347 | return nil |
| 348 | } |
| 349 | |
| 350 | id := binary.LittleEndian.Uint32(data[0:4]) |
| 351 | |
| 352 | stmt, ok := c.stmts[id] |
| 353 | if !ok { |
| 354 | return nil |
| 355 | } |
| 356 | |
| 357 | if err := c.h.HandleStmtClose(c, stmt.Context); err != nil { |
| 358 | return err |
| 359 | } |
| 360 | |
| 361 | delete(c.stmts, id) |
| 362 | |
| 363 | return nil |
| 364 | } |
no test coverage detected