Skip to content

Commit 5074655

Browse files
committed
\pset numericsep -> numericlocale.
1 parent 71d0cab commit 5074655

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-
/* numeric separators */
1424-
else if (strcmp(param, "numericsep") == 0)
1423+
/* locale-aware numeric output */
1424+
else if (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 numeric separators."));
1429+
if (popt->topt.numericLocale)
1430+
puts(_("Showing locale-adjusted numeric output."));
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy