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

Commit5074655

Browse files
committed
\pset numericsep -> numericlocale.
1 parent71d0cab commit5074655

File tree

5 files changed

+79
-78
lines changed

5 files changed

+79
-78
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.147 2005/07/14 08:42:36 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.148 2005/07/18 20:57:52 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -1493,7 +1493,7 @@ lo_import 152801
14931493
</varlistentry>
14941494

14951495
<varlistentry>
1496-
<term><literal>numericsep</literal></term>
1496+
<term><literal>numericlocale</literal></term>
14971497
<listitem>
14981498
<para>
14991499
Toggles the display of a locale-aware character to separate groups

‎src/bin/psql/command.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.149 2005/07/14 08:42:37 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.150 2005/07/18 20:57:53 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"command.h"
@@ -1420,16 +1420,16 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
14201420
:_("Expanded display is off.\n"));
14211421
}
14221422

1423-
/* numericseparators */
1424-
elseif (strcmp(param,"numericsep")==0)
1423+
/*locale-awarenumericoutput */
1424+
elseif (strcmp(param,"numericlocale")==0)
14251425
{
1426-
popt->topt.numericSep= !popt->topt.numericSep;
1426+
popt->topt.numericLocale= !popt->topt.numericLocale;
14271427
if (!quiet)
14281428
{
1429-
if (popt->topt.numericSep)
1430-
puts(_("Showing numericseparators."));
1429+
if (popt->topt.numericLocale)
1430+
puts(_("Showinglocale-adjustednumericoutput."));
14311431
else
1432-
puts(_("Numeric separators are off."));
1432+
puts(_("Locale-adjusted numeric output is off."));
14331433
}
14341434
}
14351435

‎src/bin/psql/help.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.104 2005/07/10 03:46:13 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.105 2005/07/18 20:57:53 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"common.h"
@@ -239,7 +239,7 @@ slashUsage(unsigned short int pager)
239239
fprintf(output,_(" \\pset NAME [VALUE]\n"
240240
" set table output option\n"
241241
" (NAME := {format|border|expanded|fieldsep|footer|null|\n"
242-
"numericsep|recordsep|tuples_only|title|tableattr|pager})\n"));
242+
"numericlocale|recordsep|tuples_only|title|tableattr|pager})\n"));
243243
fprintf(output,_(" \\t show only rows (currently %s)\n"),
244244
ON(pset.popt.topt.tuples_only));
245245
fprintf(output,_(" \\T [STRING] set HTML <table> tag attributes, or unset if none\n"));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp