selectOneExecutor answers any QueryContext with a single-row RowSet, so a SELECT in a batch alongside the query_source GUC actually executes.
| 99 | // clientConn wrote to its buffer (type byte + 4-byte length incl. length). |
| 100 | func parseWireMsgs(t *testing.T, buf []byte) []wireMsg { |
| 101 | t.Helper() |
| 102 | var msgs []wireMsg |
| 103 | for i := 0; i+5 <= len(buf); { |
| 104 | typ := buf[i] |
| 105 | length := int(buf[i+1])<<24 | int(buf[i+2])<<16 | int(buf[i+3])<<8 | int(buf[i+4]) |
| 106 | if length < 4 || i+1+length > len(buf) { |
| 107 | t.Fatalf("malformed wire message at offset %d (length %d, remaining %d)", i, length, len(buf)-i) |
nothing calls this directly
no outgoing calls
no test coverage detected