pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tommaso Sala <tommaso.sala@cla-it.eu>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #12053: Strange behavior for numeric types with unspecified precision-scale
Date: Sat, 29 Nov 2014 10:55:22 -0500
Message-ID: <11413.1417276522@sss.pgh.pa.us> (raw)
In-Reply-To: <-8362677256987463621@unknownmsgid>
References: <20141125111529.15508.34881@wrigleys.postgresql.org>
	<14914.1417017051@sss.pgh.pa.us>
	<CAPPt9DkAgK9MbLtLJB8B16N=5jyF4+-4jo9v2jqLudd5bwdPFQ@mail.gmail.com>
	<15613.1417121313@sss.pgh.pa.us>
	<CAPPt9DmSArf59pK3GU3pJgm1mZRnkUFBbsYnJDYmoVO4L_r2=g@mail.gmail.com>
	<20726.1417220254@sss.pgh.pa.us>
	<25038.1417228384@sss.pgh.pa.us>
	<-8362677256987463621@unknownmsgid>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Tommaso Sala <tommaso.sala@cla-it.eu> writes:
> The strange fact is that if you try to write 0.000001, it gets displayed
> correctly

My guess is that the adapter miscomputes dscale in only some situations.

> I'd agree with your proposed solution, if I only set a dscale of 2.
> But I didn't.

You didn't, but the available evidence says that Devart's adapter did.

If you maintain there is some other bug involved, maybe I *should* make
numeric_recv throw an error, just so the blame gets placed clearly.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (10+ messages)  latest in thread

Message-ID: <11413.1417276522@sss.pgh.pa.us>
Permalink:  ../11413.1417276522@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11413.1417276522@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tommaso.sala@cla-it.eu
  Subject: Re: BUG #12053: Strange behavior for numeric types with unspecified precision-scale
  In-Reply-To: <11413.1417276522@sss.pgh.pa.us>
  References: <20141125111529.15508.34881@wrigleys.postgresql.org> <14914.1417017051@sss.pgh.pa.us> <CAPPt9DkAgK9MbLtLJB8B16N=5jyF4+-4jo9v2jqLudd5bwdPFQ@mail.gmail.com> <15613.1417121313@sss.pgh.pa.us> <CAPPt9DmSArf59pK3GU3pJgm1mZRnkUFBbsYnJDYmoVO4L_r2=g@mail.gmail.com> <20726.1417220254@sss.pgh.pa.us> <25038.1417228384@sss.pgh.pa.us> <-8362677256987463621@unknownmsgid> <11413.1417276522@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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