RE: jdbc1 fix for BigDecimal scale bug

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: "'Craig Longman'" <craigl(at)begeek(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: RE: jdbc1 fix for BigDecimal scale bug
Date: 2001-06-26 22:13:40
Message-ID: 003501c0fe8d$42dc46b0$0201a8c0@INSPIRON
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Craig,

Check out the latest sources from cvs I'm pretty sure the build will
work fine

Dave

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Craig Longman
Sent: June 26, 2001 4:55 PM
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [JDBC] jdbc1 fix for BigDecimal scale bug

being one of the second-class citizens still stuck with jdbc1, i was
trying to resolve a bug with a computed NUMERIC field that suddenly
seemed to slow the query down to an absolute crawl. eventually, i
figured out that the code was request a scale of just under 64K, which
made for a pretty big BigDecimal, as well as throwing the postmaster
process into fits.

i figured out what was going on, opted for a -1 scale to indicate no
scale should be explicitly used, handled the generated columns in
getObject() (where it was really hurting me) and prepared a patch. then
i went to the jdbc2 directory to prepare a patch for it, only to find
that it was already fixed with almost exactly the same code.

so, i modified the jdbc1/ResultSet.java to use exactly the same code as
was in jdbc2/ResultSet.java, and offer it here.

i'm also trying to figure this whole ant thing out, so i can make the
build process actually work with only jdk-1.1 installed without it
puking everywhere. just doing an out-of-the-box build senses only
jdk-1.1 present, and builds the correct .jar file, but it still insists
on trying to build the example/blobtest.java, which seems to want
jdk-1.2 only stuff, as well as the whole contrib/retep/ tree. the only
way i could figure out to do was to simply remove the files that caused
an error until it built ok. i'll probably get this finished just in
time for me to no longer need jdk-1.1... ;-)

cheers,

--

CraigL->Thx();
Be Developer ID: 5852

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ola Sundell 2001-06-26 22:23:02 Re: Todo/missing?
Previous Message Craig Longman 2001-06-26 20:55:17 jdbc1 fix for BigDecimal scale bug