* PQputnbytes -- like PQputline, but buffer need not be null-terminated. * Returns 0 if OK, EOF if not. */
| 2817 | * Returns 0 if OK, EOF if not. |
| 2818 | */ |
| 2819 | int |
| 2820 | PQputnbytes(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 |
no test coverage detected