aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/psql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/psql.c')
-rw-r--r--src/bin/psql/psql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index a13ac63545e..0542d3951e9 100644
--- a/src/bin/psql/psql.c
+++ b/src/bin/psql/psql.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.142 1998/05/12 23:05:12 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.143 1998/05/13 03:27:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1988,6 +1988,8 @@ HandleSlashCmds(PsqlSettings *pset,
if (optarg)
fs = optarg;
+ if (optarg && !*optarg && strlen(cmd) > 2)
+ fs = cmd + 2;
if (pset->opt.fieldSep)
free(pset->opt.fieldSep);
if (!(pset->opt.fieldSep = strdup(fs)))