Re: Binary protocol support for JDBC

From: Radosław Smogura <rsmogura(at)softperience(dot)eu>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Binary protocol support for JDBC
Date: 2010-07-20 20:45:54
Message-ID: 201007202245.55164.rsmogura@softperience.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Radosław Smogura 2010-07-20 21:17:09 Re: Binary protocol support for JDBC
Previous Message Radosław Smogura 2010-07-20 20:43:06 Re: Binary protocol support for JDBC