diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-03-14 22:00:54 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-03-14 22:00:54 +0000 |
commit | e1d08faf043242338973f30a1d1d158498ea7f04 (patch) | |
tree | 0da9896a730c3fb7a543b3eea689b3ba0456c436 /src | |
parent | 6e7a0f355065373e195bc6afc38fce7d15280298 (diff) | |
download | postgresql-e1d08faf043242338973f30a1d1d158498ea7f04.tar.gz postgresql-e1d08faf043242338973f30a1d1d158498ea7f04.zip |
Fix error in termination of COPY IN mode when using V2 protocol.
Report and fix per ljb, 8-Mar-04.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/libpq/fe-exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c index d2ad75bb23b..6e8c2153e0a 100644 --- a/src/interfaces/libpq/fe-exec.c +++ b/src/interfaces/libpq/fe-exec.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.157 2004/03/05 01:53:59 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.158 2004/03/14 22:00:54 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; } |