Commit 2145a766 authored by Bruce Momjian's avatar Bruce Momjian

psql: allow \pset C in setting the title, matches \C

Report by David G. Johnston
parent 2d87eedc
......@@ -2336,7 +2336,7 @@ lo_import 152801
</varlistentry>
<varlistentry>
<term><literal>title</literal></term>
<term><literal>title</literal> (or <literal>C</literal>)</term>
<listitem>
<para>
Sets the table title for any subsequently printed tables. This
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment