Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3A32D632FBD for ; Sat, 24 Jul 2010 12:18:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 67596-08 for ; Sat, 24 Jul 2010 15:18:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from progressive.micfo.com (progressive.micfo.com [174.34.188.2]) by mail.postgresql.org (Postfix) with ESMTP id 39E52632BA1 for ; Sat, 24 Jul 2010 12:18:17 -0300 (ADT) Received: from 188.146.224.228.nat.umts.dynamic.eranet.pl ([188.146.224.228]:61952 helo=radek.localnet) by progressive.micfo.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OcgUP-0002LN-Qc for pgsql-jdbc@postgresql.org; Sat, 24 Jul 2010 10:18:14 -0500 To: pgsql-jdbc@postgresql.org Subject: Re: Binary protocol support for JDBC From: =?utf-8?q?Rados=C5=82aw_Smogura?= Date: Sat, 24 Jul 2010 17:21:00 +0200 MIME-Version: 1.0 Message-Id: <201007241721.00711.rsmogura@softperience.eu> Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - progressive.micfo.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - softperience.eu X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201007/97 X-Sequence-Number: 20762 Hello, At the begining I would like to ask if those patches, from can be applied to trunk sources from CVS, because I want to build complete version. In the second part of message I wuould like to correct a little a method for BigDecimal I posted before. There, I don't know way was a small mistake in last "tail" if. In particullary sign number disappered should be BigInteger(bigDecimalSign, buffer);, and complete version is. if (tail % 2 == 1) { buffer = new byte[2]; buffer[0] = number[number.length - 2]; buffer[1] = number[number.length - 1]; BigInteger valBigInteger = new BigInteger(bigDecimalSign, buffer); unscaledValue = unscaledValue.multiply(nbase).add(valBigInteger); // System.out.println("Value (2) unscaled =" + unscaledValue // +", valBI = "+ valBigInteger); } I know that this version can work for version 8 of PostgreSQL, but unfortunalty I don't have sources to check for 7.x versions. I don't know way how to get valid nbase for given version, so I use nbase encoded in sources (this nbase doesnt depend on compile parameters). Maybe it isn't problem as version 9.0 is incoming. Regards, Radek