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-24 15:21:00 |
Message-ID: | 201007241721.00711.rsmogura@softperience.eu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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
From | Date | Subject | |
---|---|---|---|
Next Message | James William Pye | 2010-07-25 02:03:20 | Re: [HACKERS] Trouble with COPY IN |
Previous Message | Kris Jurka | 2010-07-23 18:08:33 | Re: PostgreSQL JDBC vs jxDBCon as a model for other language implementations |