MCPcopy Create free account
hub / github.com/apecloud/myduckserver / makeCommandComplete

Function makeCommandComplete

pgserver/connection_handler.go:777–789  ·  view source on GitHub ↗
(tag string, rows int32)

Source from the content-addressed store, hash-verified

775}
776
777func makeCommandComplete(tag string, rows int32) *pgproto3.CommandComplete {
778 switch tag {
779 case "INSERT", "DELETE", "UPDATE", "MERGE", "SELECT", "CREATE TABLE AS", "MOVE", "FETCH", "COPY":
780 if tag == "INSERT" {
781 tag = "INSERT 0"
782 }
783 tag = fmt.Sprintf("%s %d", tag, rows)
784 }
785
786 return &pgproto3.CommandComplete{
787 CommandTag: []byte(tag),
788 }
789}
790
791// handleCopyData handles the COPY DATA message, by loading the data sent from the client. The |stop| response parameter
792// is true if the connection handler should shut down the connection, |endOfMessages| is true if no more COPY DATA

Callers 4

setPgSessionVarMethod · 0.85
handleQueryMethod · 0.85
handleExecuteMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected