Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 117DC63261E for ; Mon, 15 Feb 2010 19:49:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 79612-06 for ; Mon, 15 Feb 2010 23:49:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id E45B76322D6 for ; Mon, 15 Feb 2010 19:49:37 -0400 (AST) Received: (qmail 7978 invoked by uid 512); 15 Feb 2010 23:49:33 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.252) by sd2.tpf-fw-c.co.jp with SMTP; 15 Feb 2010 23:49:33 -0000 Message-ID: <4B79DD82.3090906@tpf.co.jp> Date: Tue, 16 Feb 2010 08:49:22 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Valdas Rutkauskas CC: "pgsql-odbc@postgresql.org" Subject: Re: numeric type issue References: <8C3F6C3393513F4BAFA2D95D662927231D0CCB6FC1@EXVMBX020-2.exch020.serverdata.net> In-Reply-To: <8C3F6C3393513F4BAFA2D95D662927231D0CCB6FC1@EXVMBX020-2.exch020.serverdata.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201002/9 X-Sequence-Number: 10196 Valdas Rutkauskas wrote: > Hi, > > > > I'm trying to migrate postgres 7.4 to postgres 8.4.2-1. Everything > seems to work fine, but fields in database with NUMERIC type returning > wrong values, but in the tables they are correct. > > > > For example: I have column defined like this: > > charge numeric(7,2) DEFAULT 0 NOT NULL,NOT NULL with value 6.67. > > > > If I use psqlODBC version 08.04.0100 return value would be 6.00, but if > I use driver postgresql-odbc-08.03.0400-1PGDG.rhel5 return value is 6.67 > which is how it suppose to be. > > > > Does anybody know any issues with version 08.04.0100 regarding numeric > type ? This bug was fixed in 8.4.0200. regards, Hiroshi Inoue