pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedlc_numeric and negative-prefix
3+ messages / 2 participants
[nested] [flat]
* lc_numeric and negative-prefix
@ 2019-09-25 22:49 Andreas Joseph Krogh <andreas@visena.com>
2019-09-25 22:53 ` Re: lc_numeric and negative-prefix Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Joseph Krogh @ 2019-09-25 22:49 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi. We're having this thread over at
https://github.com/impossibl/pgjdbc-ng/issues/420
<https://github.com/impossibl/pgjdbc-ng/issues/420; 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
- Visena AS Mobile: +47 909 56 963 andreas@visena.com
<mailto:andreas@visena.com> www.visena.com <https://www.visena.com;
<https://www.visena.com;
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: lc_numeric and negative-prefix
2019-09-25 22:49 lc_numeric and negative-prefix Andreas Joseph Krogh <andreas@visena.com>
@ 2019-09-25 22:53 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-09-25 23:00 ` Re: lc_numeric and negative-prefix Andreas Joseph Krogh <andreas@visena.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2019-09-25 22:53 UTC (permalink / raw)
To: Andreas Joseph Krogh <andreas@visena.com>; +Cc: pgsql-general@lists.postgresql.org
Andreas Joseph Krogh <andreas@visena.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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: lc_numeric and negative-prefix
2019-09-25 22:49 lc_numeric and negative-prefix Andreas Joseph Krogh <andreas@visena.com>
2019-09-25 22:53 ` Re: lc_numeric and negative-prefix Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-09-25 23:00 ` Andreas Joseph Krogh <andreas@visena.com>
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Joseph Krogh @ 2019-09-25 23:00 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
PĆ„ torsdag 26. september 2019 kl. 00:53:28, skrev Tom Lane <tgl@sss.pgh.pa.us
<mailto:tgl@sss.pgh.pa.us>>: Andreas Joseph Krogh <andreas@visena.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 Thanks for clarifying. -- Andreas Joseph Krogh CTO / Partner
- Visena AS Mobile: +47 909 56 963 andreas@visena.com
<mailto:andreas@visena.com> www.visena.com <https://www.visena.com;
<https://www.visena.com;
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-09-25 23:00 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 22:49 lc_numeric and negative-prefix Andreas Joseph Krogh <andreas@visena.com>
2019-09-25 22:53 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-09-25 23:00 ` Andreas Joseph Krogh <andreas@visena.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox