mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
psql: allow \pset C in setting the title, matches \C
Report by David G. Johnston
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user