diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-02-12 19:52:06 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-02-12 19:52:06 +0000 |
commit | 2cb61220eb8a023760ae6d9955109ce6e1a97d2b (patch) | |
tree | e28b62b301bd9a24cc1816a85b720955f9b53374 | |
parent | 05e27a9c20d4cd9f605e8601ca6b04be9056113e (diff) | |
download | postgresql-2cb61220eb8a023760ae6d9955109ce6e1a97d2b.tar.gz postgresql-2cb61220eb8a023760ae6d9955109ce6e1a97d2b.zip |
Support "" for thousands separator and plus sign in to_char(), per
report from French Debian user. psql already handles "" fine.
-rw-r--r-- | src/backend/utils/adt/formatting.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index 055d99844d9..00c2d85b3e7 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------- * formatting.c * - * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.104 2006/02/12 04:44:15 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.105 2006/02/12 19:52:06 momjian Exp $ * * * Portions Copyright (c) 1999-2005, PostgreSQL Global Development Group @@ -3720,15 +3720,16 @@ NUM_prepare_locale(NUMProc *Np) else Np->L_negative_sign = "-"; - if (lconv->positive_sign && *lconv->positive_sign) + /* Might be "" */ + if (lconv->positive_sign) Np->L_positive_sign = lconv->positive_sign; else Np->L_positive_sign = "+"; /* - * Number thousands separator + * Number thousands separator (might be "") */ - if (lconv->thousands_sep && *lconv->thousands_sep) + if (lconv->thousands_sep) Np->L_thousands_sep = lconv->thousands_sep; else Np->L_thousands_sep = ","; |