(tag string, rows int32)
| 692 | } |
| 693 | |
| 694 | func makeCommandComplete(tag string, rows int32) *pgproto3.CommandComplete { |
| 695 | switch tag { |
| 696 | case "INSERT", "DELETE", "UPDATE", "MERGE", "SELECT", "CREATE TABLE AS", "MOVE", "FETCH", "COPY": |
| 697 | if tag == "INSERT" { |
| 698 | tag = "INSERT 0" |
| 699 | } |
| 700 | tag = fmt.Sprintf("%s %d", tag, rows) |
| 701 | } |
| 702 | |
| 703 | return &pgproto3.CommandComplete{ |
| 704 | CommandTag: []byte(tag), |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | // handleCopyData handles the COPY DATA message, by loading the data sent from the client. The |stop| response parameter |
| 709 | // is true if the connection handler should shut down the connection, |endOfMessages| is true if no more COPY DATA |
no outgoing calls
no test coverage detected