summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-04-15 21:05:17 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-04-15 21:05:17 +0000
commitfc4fac0598d6347ea72701ee0f794c1a9932c6f1 (patch)
tree6d07d3ebb90d45275e921650e52250403672c98d /src
parent02915f614d122af191d381caa44d428738359424 (diff)
Fix psql's \copy to not insert spaces around dots and commas in the text of
the SELECT query in \copy (SELECT ...) commands. This is unnecessary and breaks numeric literals, as seen in bug #5411 from Vitalii Tymchyshyn. This change has already been made in passing in HEAD; backpatch to 8.2 through 8.4 (earlier releases don't have COPY (SELECT ...) at all).
Diffstat (limited to 'src')
-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 4f5fe13a2ed..da218cda497 100644
--- a/src/bin/psql/copy.c
+++ b/src/bin/psql/copy.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.77.2.1 2009/08/07 20:16:22 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.77.2.2 2010/04/15 21:05:17 tgl Exp $
*/
#include "postgres_fe.h"
#include "copy.h"
@@ -150,7 +150,7 @@ parse_slash_copy(const char *args)
while (parens > 0)
{
- token = strtokx(NULL, whitespace, ".,()", "\"'",
+ token = strtokx(NULL, whitespace, "()", "\"'",
nonstd_backslash, true, false, pset.encoding);
if (!token)
goto error;