diff options
author | Bruce Momjian <bruce@momjian.us> | 2015-10-05 20:56:38 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2015-10-05 20:56:38 -0400 |
commit | 2145a766044b4de32ab154a074ade0bf78d021df (patch) | |
tree | bf19295c0b91b1b68e35a19f1c83df10454d717e /src | |
parent | 2d87eedc1d4468d331035bbe55f140f180d20144 (diff) | |
download | postgresql-2145a766044b4de32ab154a074ade0bf78d021df.tar.gz postgresql-2145a766044b4de32ab154a074ade0bf78d021df.zip |
psql: allow \pset C in setting the title, matches \C
Report by David G. Johnston
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 8156b763e92..5163c765bae 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -2637,7 +2637,7 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet) } /* set title override */ - else if (strcmp(param, "title") == 0) + else if (strcmp(param, "C") == 0 || strcmp(param, "title") == 0) { free(popt->title); if (!value) @@ -2837,7 +2837,7 @@ printPsetInfo(const char *param, struct printQueryOpt *popt) } /* show title override */ - else if (strcmp(param, "title") == 0) + else if (strcmp(param, "C") == 0 || strcmp(param, "title") == 0) { if (popt->title) printf(_("Title is \"%s\".\n"), popt->title); |