MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / dbcb_resp_entry

Method dbcb_resp_entry

handlersocket/hstcpsvr_worker.cpp:229–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void
230hstcpsvr_conn::dbcb_resp_entry(const char *fld, size_t fldlen)
231{
232 if (fld != 0) {
233 cstate.writebuf.append_literal("\t");
234 escape_string(cstate.writebuf, fld, fld + fldlen);
235 } else {
236 static const char t[] = "\t\0";
237 cstate.writebuf.append(t, t + 2);
238 }
239}
240
241void
242hstcpsvr_conn::dbcb_resp_end()

Callers 1

resp_recordMethod · 0.80

Calls 3

escape_stringFunction · 0.85
append_literalMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected