X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1FCAA52862 for ; Mon, 13 Jun 2005 10:13:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 11806-09 for ; Mon, 13 Jun 2005 13:13:51 +0000 (GMT) Received: from mailsrv.ifxcorp.com (unknown [200.91.254.5]) by svr1.postgresql.org (Postfix) with ESMTP id 59CF75281E for ; Mon, 13 Jun 2005 10:13:50 -0300 (ADT) Received: from DEVELOPER06 ([10.16.48.39]) by mailsrv.ifxcorp.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 13 Jun 2005 09:13:53 -0400 From: =?iso-8859-1?Q?Andr=E9s_Luna?= To: "'Kris Jurka'" Cc: Subject: Re: Getting Reference cursors Date: Mon, 13 Jun 2005 08:13:52 -0500 Message-ID: <000801c57019$bf1588c0$ab78100a@ifx.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2742.200 Importance: Normal X-OriginalArrivalTime: 13 Jun 2005 13:13:53.0241 (UTC) FILETIME=[BF178490:01C57019] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.33 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/63 X-Sequence-Number: 13025 Kris Thanks for your quick answer. However, now I change to the 8.0 driver and still doesn=B4t work. The same code now fails during stored = procedure execution. Here is the stack trace.=20 java.sql.SQLException: ERROR: cursor "" does not exist at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecu torImpl.java:1471) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImp l.java:1256) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java: 175) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme nt.java:389) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdb c2Statement.java:314) at org.postgresql.jdbc2.AbstractJdbc2Connection.execSQLQuery(AbstractJdbc2C onnection.java:192) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.internalGetObject(AbstractJd bc2ResultSet.java:165) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getObject(AbstractJdbc2Resul tSet.java:2328) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdb c2Statement.java:342) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme nt.java:321) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.postgresql.ds.common.PooledConnectionImpl$StatementHandler.invoke(Po oledConnectionImpl.java:467) at $Proxy1.execute(Unknown Source) ... Tks in advance! -----Mensaje original----- De: Kris Jurka [mailto:books@ejurka.com]=20 Enviado el: domingo, 12 de junio de 2005 1:07 Para: Andr=E9s Luna CC: pgsql-jdbc@postgresql.org Asunto: Re: [JDBC] Getting Reference cursors On Fri, 10 Jun 2005, [iso-8859-1] Andr=E9s Luna wrote: > Im using the JDBC driver to connect to a Postgres Database. I have a=20 > function that returns a reference cursor and it works ok returning=20 > result itself. However, whenever I try to use the result set meta data > of the ref cursor it doesn't work. Let me explain better: This is fixed in the 8.0 driver. Kris Jurka --=20 No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.6.9 - Release Date: 11/06/2005 =20 --=20 No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.6.9 - Release Date: 11/06/2005 =20