Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows]

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows]
Дата
Msg-id 411CB79E.40602@dunslane.net
обсуждение исходный текст
Ответ на [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows]  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows]  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

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;

В списке pgsql-hackers по дате отправления:

Предыдущее
От: strk
Дата:
Сообщение: Re: Dump Version
Следующее
От: Zoltan Bartko
Дата:
Сообщение: i18n - sk