index 00c2d85b3e72a8730d8e6be743bd96d376c190ec..78ae83b52dae176af896c39b167228a1ad01cc66 100644 (file)
/* -----------------------------------------------------------------------
* formatting.c
*
- * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.105 2006年02月12日 19:52:06 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.106 2006年02月12日 23:48:23 momjian Exp $
*
*
* Portions Copyright (c) 1999-2005, PostgreSQL Global Development Group
else
Np->L_negative_sign = "-";
- /* Might be "" */
- if (lconv->positive_sign)
+ if (lconv->positive_sign && *lconv->positive_sign)
Np->L_positive_sign = lconv->positive_sign;
else
Np->L_positive_sign = "+";
/*
- * Number thousands separator (might be "")
+ * Number thousands separator
*/
- if (lconv->thousands_sep)
+ if (lconv->thousands_sep && *lconv->thousands_sep)
Np->L_thousands_sep = lconv->thousands_sep;
else
Np->L_thousands_sep = ",";