aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2013-09-10 19:36:10 -0400
committerBruce Momjian <bruce@momjian.us>2013-09-10 19:36:10 -0400
commitd8a5608d4ac9d4b74772980666cc6626bd18c3ff (patch)
tree20ec812231f9673b4c27dadd7256d757061da0d5
parent601f48076f8036a223f631692db83ec661f785a6 (diff)
downloadpostgresql-d8a5608d4ac9d4b74772980666cc6626bd18c3ff.tar.gz
postgresql-d8a5608d4ac9d4b74772980666cc6626bd18c3ff.zip
psql: fix \copy stdin trailing space requirement
Previously a trailing space was required for \copy ... stdin: copy foo from stdin ; Etsuro Fujita
-rw-r--r--src/bin/psql/copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c
index c1e7cfeb8af..13123d600db 100644
--- a/src/bin/psql/copy.c
+++ b/src/bin/psql/copy.c
@@ -196,7 +196,7 @@ parse_slash_copy(const char *args)
goto error;
/* { 'filename' | PROGRAM 'command' | STDIN | STDOUT | PSTDIN | PSTDOUT } */
- token = strtokx(NULL, whitespace, NULL, "'",
+ token = strtokx(NULL, whitespace, ";", "'",
0, false, false, pset.encoding);
if (!token)
goto error;
@@ -205,7 +205,7 @@ parse_slash_copy(const char *args)
{
int toklen;
- token = strtokx(NULL, whitespace, NULL, "'",
+ token = strtokx(NULL, whitespace, ";", "'",
0, false, false, pset.encoding);
if (!token)
goto error;