From: Tom Lane Date: Sun, 14 Mar 2004 22:01:01 +0000 (+0000) Subject: Fix error in termination of COPY IN mode when using V2 protocol. X-Git-Tag: REL7_4_3~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0175b6d101111687a2589841081abbf1ac37b5b6;p=thirdparty%2Fpostgresql.git Fix error in termination of COPY IN mode when using V2 protocol. Report and fix per ljb, 8-Mar-04. --- diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c index 68474a79442..2b9549a714e 100644 --- a/src/interfaces/libpq/fe-exec.c +++ b/src/interfaces/libpq/fe-exec.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.153.2.3 2004/03/05 01:54:13 tgl Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.153.2.4 2004/03/14 22:01:01 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1469,7 +1469,7 @@ PQputCopyEnd(PGconn *conn, const char *errormsg) { /* Send old-style end-of-data marker */ if (pqPutMsgStart(0, false, conn) < 0 || - pqPuts("\\.\n", conn) < 0 || + pqPutnchar("\\.\n", 3, conn) < 0 || pqPutMsgEnd(conn) < 0) return -1; }