Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XukMt-0007QO-LN for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Nov 2014 15:55:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XukMt-0002O6-0v for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Nov 2014 15:55:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XukMr-0002Nz-Vq for pgsql-bugs@postgresql.org; Sat, 29 Nov 2014 15:55:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XukMp-0001r1-4a for pgsql-bugs@postgresql.org; Sat, 29 Nov 2014 15:55:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sATFtMRK011414; Sat, 29 Nov 2014 10:55:23 -0500 From: Tom Lane To: Tommaso Sala cc: "pgsql-bugs@postgresql.org" Subject: Re: BUG #12053: Strange behavior for numeric types with unspecified precision-scale In-reply-to: <-8362677256987463621@unknownmsgid> References: <20141125111529.15508.34881@wrigleys.postgresql.org> <14914.1417017051@sss.pgh.pa.us> <15613.1417121313@sss.pgh.pa.us> <20726.1417220254@sss.pgh.pa.us> <25038.1417228384@sss.pgh.pa.us> <-8362677256987463621@unknownmsgid> Comments: In-reply-to Tommaso Sala message dated "Sat, 29 Nov 2014 13:12:39 +0100" Date: Sat, 29 Nov 2014 10:55:22 -0500 Message-ID: <11413.1417276522@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Tommaso Sala 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