summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2013-09-10 23:36:10 +0000
committerBruce Momjian2013-09-10 23:36:10 +0000
commitd8a5608d4ac9d4b74772980666cc6626bd18c3ff (patch)
tree20ec812231f9673b4c27dadd7256d757061da0d5
parent601f48076f8036a223f631692db83ec661f785a6 (diff)
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 c1e7cfeb8a..13123d600d 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;