MCPcopy Create free account
hub / github.com/apache/cloudberry / pqTraceOutputB

Function pqTraceOutputB

src/interfaces/libpq/fe-trace.c:229–257  ·  view source on GitHub ↗

Bind */

Source from the content-addressed store, hash-verified

227
228/* Bind */
229static void
230pqTraceOutputB(FILE *f, const char *message, int *cursor)
231{
232 int nparams;
233
234 fprintf(f, "Bind\t");
235 pqTraceOutputString(f, message, cursor, false);
236 pqTraceOutputString(f, message, cursor, false);
237 nparams = pqTraceOutputInt16(f, message, cursor);
238
239 for (int i = 0; i < nparams; i++)
240 pqTraceOutputInt16(f, message, cursor);
241
242 nparams = pqTraceOutputInt16(f, message, cursor);
243
244 for (int i = 0; i < nparams; i++)
245 {
246 int nbytes;
247
248 nbytes = pqTraceOutputInt32(f, message, cursor, false);
249 if (nbytes == -1)
250 continue;
251 pqTraceOutputNchar(f, nbytes, message, cursor);
252 }
253
254 nparams = pqTraceOutputInt16(f, message, cursor);
255 for (int i = 0; i < nparams; i++)
256 pqTraceOutputInt16(f, message, cursor);
257}
258
259/* Close(F) or CommandComplete(B) */
260static void

Callers 1

pqTraceOutputMessageFunction · 0.85

Calls 4

pqTraceOutputStringFunction · 0.85
pqTraceOutputInt16Function · 0.85
pqTraceOutputInt32Function · 0.85
pqTraceOutputNcharFunction · 0.85

Tested by

no test coverage detected