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

Commitd8a5608

Browse files
committed
psql: fix \copy stdin trailing space requirement
Previously a trailing space was required for \copy ... stdin:copy foo from stdin ;Etsuro Fujita
1 parent601f480 commitd8a5608

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/psql/copy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ parse_slash_copy(const char *args)
196196
gotoerror;
197197

198198
/* { 'filename' | PROGRAM 'command' | STDIN | STDOUT | PSTDIN | PSTDOUT } */
199-
token=strtokx(NULL,whitespace,NULL,"'",
199+
token=strtokx(NULL,whitespace,";","'",
200200
0, false, false,pset.encoding);
201201
if (!token)
202202
gotoerror;
@@ -205,7 +205,7 @@ parse_slash_copy(const char *args)
205205
{
206206
inttoklen;
207207

208-
token=strtokx(NULL,whitespace,NULL,"'",
208+
token=strtokx(NULL,whitespace,";","'",
209209
0, false, false,pset.encoding);
210210
if (!token)
211211
gotoerror;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp