MCPcopy
hub / github.com/go-sql-driver/mysql / clearResult

Method clearResult

packets.go:663–666  ·  view source on GitHub ↗

clearResult clears the connection's stored affectedRows and insertIds fields. It returns a handler that can process OK responses.

()

Source from the content-addressed store, hash-verified

661//
662// It returns a handler that can process OK responses.
663func (mc *mysqlConn) clearResult() *okHandler {
664 mc.result = mysqlResult{}
665 return (*okHandler)(mc)
666}
667
668// Ok Packet
669// https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_basic_ok_packet.html

Callers 8

closeMethod · 0.95
execMethod · 0.95
queryMethod · 0.95
getSystemVarMethod · 0.95
PingMethod · 0.95
ExecMethod · 0.80
queryMethod · 0.80
CloseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected