Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
50746552
Commit
50746552
authored
Jul 18, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
\pset numericsep -> numericlocale.
parent
71d0cabe
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
78 deletions
+79
-78
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/ref/psql-ref.sgml
+2
-2
src/bin/psql/command.c
src/bin/psql/command.c
+7
-7
src/bin/psql/help.c
src/bin/psql/help.c
+2
-2
src/bin/psql/print.c
src/bin/psql/print.c
+66
-65
src/bin/psql/print.h
src/bin/psql/print.h
+2
-2
No files found.
doc/src/sgml/ref/psql-ref.sgml
View file @
50746552
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.14
7 2005/07/14 08:42:36
momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.14
8 2005/07/18 20:57:52
momjian Exp $
PostgreSQL documentation
-->
...
...
@@ -1493,7 +1493,7 @@ lo_import 152801
</varlistentry>
<varlistentry>
<term><literal>numeric
sep
</literal></term>
<term><literal>numeric
locale
</literal></term>
<listitem>
<para>
Toggles the display of a locale-aware character to separate groups
...
...
src/bin/psql/command.c
View file @
50746552
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.1
49 2005/07/14 08:42:37
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.1
50 2005/07/18 20:57:53
momjian Exp $
*/
#include "postgres_fe.h"
#include "command.h"
...
...
@@ -1420,16 +1420,16 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
:
_
(
"Expanded display is off.
\n
"
));
}
/*
numeric separators
*/
else
if
(
strcmp
(
param
,
"numeric
sep
"
)
==
0
)
/*
locale-aware numeric output
*/
else
if
(
strcmp
(
param
,
"numeric
locale
"
)
==
0
)
{
popt
->
topt
.
numeric
Sep
=
!
popt
->
topt
.
numericSep
;
popt
->
topt
.
numeric
Locale
=
!
popt
->
topt
.
numericLocale
;
if
(
!
quiet
)
{
if
(
popt
->
topt
.
numeric
Sep
)
puts
(
_
(
"Showing
numeric separators
."
));
if
(
popt
->
topt
.
numeric
Locale
)
puts
(
_
(
"Showing
locale-adjusted numeric output
."
));
else
puts
(
_
(
"
Numeric separators are
off."
));
puts
(
_
(
"
Locale-adjusted numeric output is
off."
));
}
}
...
...
src/bin/psql/help.c
View file @
50746552
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.10
4 2005/07/10 03:46:1
3 momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.10
5 2005/07/18 20:57:5
3 momjian Exp $
*/
#include "postgres_fe.h"
#include "common.h"
...
...
@@ -239,7 +239,7 @@ slashUsage(unsigned short int pager)
fprintf
(
output
,
_
(
"
\\
pset NAME [VALUE]
\n
"
" set table output option
\n
"
" (NAME := {format|border|expanded|fieldsep|footer|null|
\n
"
" numeric
sep
|recordsep|tuples_only|title|tableattr|pager})
\n
"
));
" numeric
locale
|recordsep|tuples_only|title|tableattr|pager})
\n
"
));
fprintf
(
output
,
_
(
"
\\
t show only rows (currently %s)
\n
"
),
ON
(
pset
.
popt
.
topt
.
tuples_only
));
fprintf
(
output
,
_
(
"
\\
T [STRING] set HTML <table> tag attributes, or unset if none
\n
"
));
...
...
src/bin/psql/print.c
View file @
50746552
This diff is collapsed.
Click to expand it.
src/bin/psql/print.h
View file @
50746552
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/print.h,v 1.2
7 2005/07/14 08:42:37
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/print.h,v 1.2
8 2005/07/18 20:57:53
momjian Exp $
*/
#ifndef PRINT_H
#define PRINT_H
...
...
@@ -40,7 +40,7 @@ typedef struct _printTableOpt
char
*
fieldSep
;
/* field separator for unaligned text mode */
char
*
recordSep
;
/* record separator for unaligned text
* mode */
bool
numeric
Sep
;
/* locale-aware numeric units separator and
bool
numeric
Locale
;
/* locale-aware numeric units separator and
* decimal marker */
char
*
tableAttr
;
/* attributes for HTML <table ...> */
int
encoding
;
/* character encoding */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment