1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Fix to allow \f \ to make spaces as delimiter.

This commit is contained in:
Bruce Momjian
1998-05-13 03:27:07 +00:00
parent 1a07a522f9
commit 2af0d090f1
2 changed files with 14 additions and 3 deletions

View File

@ -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)))