MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / handleStmtClose

Method handleStmtClose

IceFireDB-SQLite/pkg/mysql/server/stmt.go:345–364  ·  view source on GitHub ↗

stmt close command has no response

(data []byte)

Source from the content-addressed store, hash-verified

343
344// stmt close command has no response
345func (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}

Callers 1

dispatchMethod · 0.95

Calls 1

HandleStmtCloseMethod · 0.65

Tested by

no test coverage detected