* 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. */
| 2807 | * send failure. |
| 2808 | */ |
| 2809 | int |
| 2810 | PQputline(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. |
no test coverage detected