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

Function PQputline

src/interfaces/libpq/fe-exec.c:2809–2813  ·  view source on GitHub ↗

* PQputline -- sends a string to the backend during COPY IN. * Returns 0 if OK, EOF if not. * * This is deprecated primarily because the return convention doesn't allow * caller to tell the difference between a hard error and a nonblock-mode * send failure. */

Source from the content-addressed store, hash-verified

2807 * send failure.
2808 */
2809int
2810PQputline(PGconn *conn, const char *s)
2811{
2812 return PQputnbytes(conn, s, strlen(s));
2813}
2814
2815/*
2816 * PQputnbytes -- like PQputline, but buffer need not be null-terminated.

Callers 1

Calls 1

PQputnbytesFunction · 0.85

Tested by

no test coverage detected