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

Commit52e4f27

Browse files
committed
Prevent doubling of escapes when not in quote mode for CSV.
1 parent1ad5905 commit52e4f27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/commands/copy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.221 2004/04/1917:22:30 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.222 2004/04/1921:58:02 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2599,7 +2599,7 @@ CopyAttributeOutCSV(char *server_string, char *delim, char *quote,
25992599

26002600
for (; (c=*string)!='\0';string+=mblen)
26012601
{
2602-
if (c==quotec||c==escapec)
2602+
if (need_quote&& (c==quotec||c==escapec))
26032603
CopySendChar(escapec);
26042604

26052605
CopySendChar(c);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp