Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2145a76

Browse files
committed
psql: allow \pset C in setting the title, matches \C
Report by David G. Johnston
1 parent2d87eed commit2145a76

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎doc/src/sgml/ref/psql-ref.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ lo_import 152801
23362336
</varlistentry>
23372337

23382338
<varlistentry>
2339-
<term><literal>title</literal></term>
2339+
<term><literal>title</literal> (or <literal>C</literal>)</term>
23402340
<listitem>
23412341
<para>
23422342
Sets the table title for any subsequently printed tables. This

‎src/bin/psql/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
26372637
}
26382638

26392639
/* set title override */
2640-
elseif (strcmp(param,"title")==0)
2640+
elseif (strcmp(param,"C")==0||strcmp(param,"title")==0)
26412641
{
26422642
free(popt->title);
26432643
if (!value)
@@ -2837,7 +2837,7 @@ printPsetInfo(const char *param, struct printQueryOpt *popt)
28372837
}
28382838

28392839
/* show title override */
2840-
elseif (strcmp(param,"title")==0)
2840+
elseif (strcmp(param,"C")==0||strcmp(param,"title")==0)
28412841
{
28422842
if (popt->title)
28432843
printf(_("Title is \"%s\".\n"),popt->title);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp