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

Function PQputnbytes

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

* PQputnbytes -- like PQputline, but buffer need not be null-terminated. * Returns 0 if OK, EOF if not. */

Source from the content-addressed store, hash-verified

2817 * Returns 0 if OK, EOF if not.
2818 */
2819int
2820PQputnbytes(PGconn *conn, const char *buffer, int nbytes)
2821{
2822 if (PQputCopyData(conn, buffer, nbytes) > 0)
2823 return 0;
2824 else
2825 return EOF;
2826}
2827
2828/*
2829 * PQendcopy

Callers 1

PQputlineFunction · 0.85

Calls 1

PQputCopyDataFunction · 0.85

Tested by

no test coverage detected