Andrew Dunstan wrote:
>
> The attached patch appears to solve the problem. However, while it
> makes us conform to the first sentence below from the docs, it doesn't
> comply with the second. Not sure what to do about that. Maybe there's
> a better solution?
>
>
Attached patch seems much better, I think.
cheers
andrew
Index: src/bin/psql/copy.c
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/bin/psql/copy.c,v
retrieving revision 1.50
diff -c -r1.50 copy.c
*** src/bin/psql/copy.c 11 Jul 2004 21:34:03 -0000 1.50
--- src/bin/psql/copy.c 13 Aug 2004 12:41:15 -0000
***************
*** 717,723 ****
PQputline(conn, copybuf);
if (firstload)
{
! if (!strcmp(copybuf, "\\."))
{
copydone = true;
break;
--- 717,724 ----
PQputline(conn, copybuf);
if (firstload)
{
! if ((!strcmp(copybuf, "\\.")) ||
! (c == '\n' && !strcmp(copybuf,"\\.\r")))
{
copydone = true;
break;