diff options
| author | Bruce Momjian <bruce@momjian.us> | 2007-11-22 15:10:05 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2007-11-22 15:10:05 +0000 |
| commit | d9bc7a39465f10e63ad12685918db3c7bec562d1 (patch) | |
| tree | ee9d3d0f1b020bc1d350747895902bd9baf37f67 /src/bin/psql/print.c | |
| parent | 73f9089045164db8a1a2a96cc0949c4e838cf4fc (diff) | |
| download | postgresql-d9bc7a39465f10e63ad12685918db3c7bec562d1.tar.gz | |
Add comments about thousands separator logic.
Diffstat (limited to 'src/bin/psql/print.c')
| -rw-r--r-- | src/bin/psql/print.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index eafb8f6628..2dee6be79d 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2007, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.92 2007/11/21 22:28:18 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.93 2007/11/22 15:10:05 momjian Exp $ * * Note: we include postgres.h not postgres_fe.h so that we can include * catalog/pg_type.h, and thereby have access to INT4OID and similar macros. @@ -2039,6 +2039,7 @@ setDecimalLocale(void) grouping = "3"; /* most common */ if (*extlconv->thousands_sep) thousands_sep = strdup(extlconv->thousands_sep); + /* Make sure thousands separator doesn't match decimal point symbol. */ else if (strcmp(decimal_point, ",") != 0) thousands_sep = ","; else |
