Re: Binary protocol support for JDBC - Mailing list pgsql-jdbc

From Radosław Smogura
Subject Re: Binary protocol support for JDBC
Date
Msg-id 201007202245.55164.rsmogura@softperience.eu
Whole thread Raw
In response to Re: Binary protocol support for JDBC  (Kris Jurka <books@ejurka.com>)
List 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;
    }

pgsql-jdbc by date:

Previous
From: Radosław Smogura
Date:
Subject: Re: Binary protocol support for JDBC
Next
From: Radosław Smogura
Date:
Subject: Re: Binary protocol support for JDBC