Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id E661E9FB5D0 for ; Fri, 27 Apr 2007 15:50:30 -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 22474-09 for ; Fri, 27 Apr 2007 15:50:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id 861739FB21C for ; Fri, 27 Apr 2007 15:50:26 -0300 (ADT) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id 7F0A11580630; Fri, 27 Apr 2007 14:55:58 -0400 (EDT) In-Reply-To: <704996.38286.qm@web39113.mail.mud.yahoo.com> References: <704996.38286.qm@web39113.mail.mud.yahoo.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/alternative; boundary=Apple-Mail-4--323357202 Message-Id: Cc: Kris Jurka , pgsql-jdbc@postgresql.org From: Dave Cramer Subject: Re: Refcursor bug Date: Fri, 27 Apr 2007 14:50:21 -0400 To: Altaf Malik X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/138 X-Sequence-Number: 16987 --Apple-Mail-4--323357202 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 27-Apr-07, at 1:56 PM, Altaf Malik wrote: > Yes it is useless but at least we cannot prevent the user from > doing it. Does it mean we should throw exception and not allow user > to get even the first resultset? Because exception comes internally > when processing the resultset. There's many things the user can do that don't work. Is this for some other product ? Dave > > --Altaf > > Kris Jurka wrote: > > > On Fri, 27 Apr 2007, Altaf Malik wrote: > > > Hi, I encountered a bug with refcursors with the latest JDBC > driver. I > > cannot get two refcursors as OUT parameter if both of them point > to the > > same underlying refcursor. > > > > Is this an actual problem or just something you came up with to > make it > fail? I don't see the use case here because the previous driver > version > would return the full ResultSet and then an empty one because > everything > had been fetched from it. So that would be pretty useless. > > Kris Jurka > > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: explain analyze is your friend > > > Ahhh...imagining that irresistible "new car" smell? > Check out new cars at Yahoo! Autos. --Apple-Mail-4--323357202 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=US-ASCII
On 27-Apr-07, at = 1:56 PM, Altaf Malik wrote:

Yes it is = useless but at least we cannot prevent the user from doing it. Does it = mean we should throw exception and not allow user to get even the first = resultset? Because exception comes internally when processing the = resultset.

There's many things the user can = do that don't work. Is this for some other product ?

Dave

--Altaf

Kris Jurka <books@ejurka.com> = wrote:


On Fri, = 27 Apr 2007, Altaf Malik wrote:

> Hi, I encountered a bug with = refcursors with the latest JDBC driver. I
> cannot get two = refcursors as OUT parameter if both of them point to the
> same = underlying refcursor.
>

Is this an actual problem or just = something you came up with to make it
fail? I don't see the use = case here because the previous driver version
would return the full = ResultSet and then an empty one because everything
had been fetched = from it. So that would be pretty useless.

Kris = Jurka


---------------------------(end of = broadcast)---------------------------
TIP 6: explain analyze is your = friend



Ahhh...imagining = that irresistible "new car" smell?
Check out new cars at Yahoo! = Autos.

= --Apple-Mail-4--323357202--