diff options
author | Bruce Momjian <bruce@momjian.us> | 2007-11-21 22:28:18 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2007-11-21 22:28:18 +0000 |
commit | 3894e7cc55c059d83433aa33e6c286090d658206 (patch) | |
tree | 98879911d30527969ac982329ef5c087d666ea43 /src/bin/psql/print.c | |
parent | 6f3149e4644f27f25e14717225b607eabfbff2e1 (diff) | |
download | postgresql-3894e7cc55c059d83433aa33e6c286090d658206.tar.gz postgresql-3894e7cc55c059d83433aa33e6c286090d658206.zip |
When setting default thousands separator when locale has "", use logic
so new thousands separator doesn't match decimal symbol.
Diffstat (limited to 'src/bin/psql/print.c')
-rw-r--r-- | src/bin/psql/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 46823ab3cc2..eafb8f6628a 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.91 2007/01/05 22:19:49 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.92 2007/11/21 22:28:18 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,7 +2039,7 @@ setDecimalLocale(void) grouping = "3"; /* most common */ if (*extlconv->thousands_sep) thousands_sep = strdup(extlconv->thousands_sep); - else if (*decimal_point != ',') + else if (strcmp(decimal_point, ",") != 0) thousands_sep = ","; else thousands_sep = "."; |