Re: lc_numeric and negative-prefix

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Joseph Krogh <andreas(at)visena(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: lc_numeric and negative-prefix
Date: 2019-09-25 22:53:28
Message-ID: 29374.1569452008@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andreas Joseph Krogh <andreas(at)visena(dot)com> writes:
> Can anybody shed som light
> on when negative-prefix is supposed to be respected by PG's
> formatting-functions? In lc_numeric='nb_NO.UTF-8' negative-prefix is '−'(8722),
> not '-'(45), at least in the JAVA-world, but it seems the JDBC-driver must use
> lc_numeric='C' when parsing server output. -- Andreas Joseph Krogh CTO / Partner

PG does not consider LC_NUMERIC at all when producing output from
the standard numeric data types (and we aren't going to start).
AFAIR the only functions that do pay attention to LC_NUMERIC are
to_char() and friends.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Joseph Krogh 2019-09-25 23:00:07 Re: lc_numeric and negative-prefix
Previous Message Andreas Joseph Krogh 2019-09-25 22:49:33 lc_numeric and negative-prefix