Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 53DBF9FB564 for ; Fri, 27 Apr 2007 14:56:50 -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 59811-01 for ; Fri, 27 Apr 2007 14:56:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from web39113.mail.mud.yahoo.com (web39113.mail.mud.yahoo.com [209.191.87.232]) by postgresql.org (Postfix) with SMTP id 358309FB506 for ; Fri, 27 Apr 2007 14:56:34 -0300 (ADT) Received: (qmail 38289 invoked by uid 60001); 27 Apr 2007 17:56:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Dg8DGKpXeq8vG2vQeCPclqUWxgieZ936+6EB43EEMW22Rga7D6lBAfadaJHcO7gRYnEimm/q/37TPhY7NUy27RA1pjDTHm1E9Q3pCU4Wm9WCuJXMf3/0IIjuhbdWjYxyDTwklSTvvVDSD3bzclfJ+7FRs6JtVXCh24p02JB/VDs=; X-YMail-OSG: 2X_Qe5YVM1kPtTCqCWUeg8EF_qzXARMOQ.QRsFczQdoqc3uXTV9WTV.zptKUlfzLBYB6icI3tCn6EB2oMQWcdvxkMim0C6DkGLotOWoGbjY9hrS.jLEOohP1IA-- Received: from [210.2.161.149] by web39113.mail.mud.yahoo.com via HTTP; Fri, 27 Apr 2007 10:56:32 PDT Date: Fri, 27 Apr 2007 10:56:32 -0700 (PDT) From: Altaf Malik Subject: Re: Refcursor bug To: Kris Jurka Cc: pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-456909924-1177696592=:38286" Content-Transfer-Encoding: 8bit Message-ID: <704996.38286.qm@web39113.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/137 X-Sequence-Number: 16986 --0-456909924-1177696592=:38286 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. --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 outnew cars at Yahoo! Autos. --0-456909924-1177696592=:38286 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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.

--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. --0-456909924-1177696592=:38286--