Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 3A44563ED27 for ; Tue, 20 Jul 2010 17:43:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 79681-10 for ; Tue, 20 Jul 2010 20:43:26 +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 BE40263EC9B for ; Tue, 20 Jul 2010 17:43:26 -0300 (ADT) Received: from 87-204-194-135.dg-net.pl ([87.204.194.135]:55005 helo=radek.localnet) by progressive.micfo.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1ObJet-0000ND-CZ for pgsql-jdbc@postgresql.org; Tue, 20 Jul 2010 15:43:23 -0500 From: =?utf-8?q?Rados=C5=82aw_Smogura?= To: pgsql-jdbc@postgresql.org Subject: Re: Binary protocol support for JDBC Date: Tue, 20 Jul 2010 22:45:54 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.33-gentoo-r2; KDE/4.4.4; x86_64; ; ) References: <201007202114.01608.rsmogura@softperience.eu> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201007202245.55164.rsmogura@softperience.eu> 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=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001 X-Spam-Level: X-Archive-Number: 201007/70 X-Sequence-Number: 20735 And I forgot about some AbstractJdbc2ResultSet constants used for cache important values, I haven't checked this nbase, but it's looks like it's constant in Postgres. private static final BigInteger _nbase = new BigInteger("10000"); private static final BigInteger _nbasePow2 = _nbase.pow(2); private static final BigInteger _nbasePow4 = _nbase.pow(4); private static final long nbaseLong = _nbase.longValue(); private static final long nbaseLongPow2 = nbaseLong * nbaseLong; private static final int nbaseInt = (int) nbaseLong; protected BigInteger getNBase() { return _nbase; } protected BigInteger getNBasePow2() { return _nbasePow2; } protected BigInteger getNBasePow4() { return _nbasePow4; }