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

Commitfbc11b9

Browse files
committed
Make better thousands_sep default based on decimal marker value.
1 parent45a19ef commitfbc11b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/bin/psql/print.c

Lines changed: 4 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/print.c,v 1.67 2005/07/1408:42:37 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.68 2005/07/1415:54:21 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"common.h"
@@ -1722,8 +1722,10 @@ setDecimalLocale(void)
17221722
grouping="3";/* most common */
17231723
if (*extlconv->thousands_sep)
17241724
thousands_sep=strdup(extlconv->thousands_sep);
1725+
elseif (*decimal_point!=',')
1726+
thousands_sep=",";
17251727
else
1726-
thousands_sep=",";/* matches SQL standard decimal marker */
1728+
thousands_sep=".";
17271729
}
17281730

17291731

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp