Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit361b94c

Browse files
committed
Add C comment about \copy bug in CSV mode
Comment: This code erroneously assumes '\.' on a line alone inside aquoted CSV string terminates the \copy.http://www.postgresql.org/message-id/E1TdNVQ-0001ju-GO@wrigleys.postgresql.org
1 parent20a1b9e commit361b94c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/bin/psql/copy.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,11 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary)
635635
/* check for EOF marker, but not on a partial line */
636636
if (firstload)
637637
{
638+
/*
639+
* This code erroneously assumes '\.' on a line alone
640+
* inside a quoted CSV string terminates the \copy.
641+
* http://www.postgresql.org/message-id/E1TdNVQ-0001ju-GO@wrigleys.postgresql.org
642+
*/
638643
if (strcmp(buf,"\\.\n")==0||
639644
strcmp(buf,"\\.\r\n")==0)
640645
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp