pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radosław Smogura <rsmogura@softperience.eu>
To: pgsql-jdbc@postgresql.org
Subject: Re: Binary protocol support for JDBC
Date: Tue, 20 Jul 2010 22:45:54 +0200
Message-ID: <201007202245.55164.rsmogura@softperience.eu> (raw)
In-Reply-To: <alpine.BSO.2.00.1007201518220.19403@leary.csoft.net>
References: <201007202114.01608.rsmogura@softperience.eu>
	<alpine.BSO.2.00.1007201518220.19403@leary.csoft.net>

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;
    }



view thread (6+ messages)  latest in thread

Message-ID: <201007202245.55164.rsmogura@softperience.eu>
Permalink:  ../201007202245.55164.rsmogura@softperience.eu/
Also on:    postgresql.org/message-id/201007202245.55164.rsmogura@softperience.eu

 · 

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-jdbc@postgresql.org
  Cc: rsmogura@softperience.eu
  Subject: Re: Binary protocol support for JDBC
  In-Reply-To: <201007202245.55164.rsmogura@softperience.eu>
  References: <201007202114.01608.rsmogura@softperience.eu> <alpine.BSO.2.00.1007201518220.19403@leary.csoft.net> <201007202245.55164.rsmogura@softperience.eu>

* 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