Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id C71CA9F9A8C for ; Mon, 1 Oct 2007 07:43:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 59570-01 for ; Mon, 1 Oct 2007 07:43:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by postgresql.org (Postfix) with ESMTP id 5755E9F98AD for ; Mon, 1 Oct 2007 07:43:22 -0300 (ADT) Received: from [192.168.1.100] ([70.81.168.251]) by VL-MH-MR001.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0JP8005OLB48DV10@VL-MH-MR001.ip.videotron.ca> for pgsql-jdbc@postgresql.org; Mon, 01 Oct 2007 06:43:21 -0400 (EDT) Date: Mon, 01 Oct 2007 06:48:39 -0400 From: David Gagnon Subject: Re: rs.getBigDecimal returning Null on field that is not null In-reply-to: To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Message-id: <4700D087.6050303@siunik.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <46FCD5A9.8020504@siunik.com> User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/6 X-Sequence-Number: 17578 Hi Kris, Thanks for your anwser. I debugged the JDBC drivers, I searched a lot to find the problem on my yard :-( I forgot to commented out an EXECUTE statement. So the field were never calculated even thoutgh all the rest of the code was there... Sorry for the noice and thanks for your answer Best Regards David Kris Jurka wrote: > > > On Fri, 28 Sep 2007, David Gagnon wrote: > >> I ran into this problem that look like a bug if someone can confirm >> and hopefully provide a workaround. >> >> I have a storedProcedure that use a refcursor + temp table to create >> a report. The problem is that the NUMERIC field 13 I get in my >> application is always NULL. When I run the stored procedure from >> PGADMINIII I can see that field 13 has value 5.5400000000000000. >> > > > You've provided a lot of very complicated code that no one can run, so > it's unlikely you're going to get any real useful help. You don't > even include the Java code that's used to setup and use this function > which would be nice if you believe it's a problem with the JDBC driver. > > I don't know of any bugs in this area and once the refcursor is setup > the display process works pretty much like any other resultset, so it > seems unlikely there's a serious bug that leaves out data here. If > you can put together a small, self contained test case, I'll gladly > take a look at it, but I don't see anything immediately wrong in this > area. > > Kris Jurka >