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 F1F4AD1B1BC for ; Thu, 17 Jun 2004 01:52:17 -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 14323-08 for ; Thu, 17 Jun 2004 04:52:12 +0000 (GMT) Received: from brmea-mail-3.sun.com (brmea-mail-3.Sun.COM [192.18.98.34]) by svr1.postgresql.org (Postfix) with ESMTP id A9B4AD1B170 for ; Thu, 17 Jun 2004 01:52:10 -0300 (ADT) Received: from phys-biff-1 ([129.158.227.36]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id i5H4q9il008447 for ; Wed, 16 Jun 2004 22:52:10 -0600 (MDT) Received: from conversion-daemon.biff-mail1.india.sun.com by biff-mail1.india.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0HZF00501RZYD3@biff-mail1.india.sun.com> (original mail from Amit.Handa@Sun.COM) for pgsql-jdbc@postgresql.org; Thu, 17 Jun 2004 10:22:09 +0530 (IST) Received: from Sun.COM (javasoft18.India.Sun.COM [129.158.229.190]) by biff-mail1.india.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0HZF006S5S6WG7@biff-mail1.india.sun.com>; Thu, 17 Jun 2004 10:22:09 +0530 (IST) Date: Thu, 17 Jun 2004 10:24:48 +0530 From: Amit Handa Subject: Re: Support for JDK 1.5 RowSets In-reply-to: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78511FD30@vt-pe2550-001.vantage.vantage.com> To: Kevin MacClay Cc: pgsql-jdbc@postgresql.org Reply-To: Amit.Handa@Sun.COM Message-id: <40D12418.8010709@Sun.COM> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20031128 References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78511FD30@vt-pe2550-001.vantage.vantage.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/124 X-Sequence-Number: 10326 Hi Kevin, all, Thanks for pointing these problems out! We are already aware of these problems and these will be fixed in the next release of Tiger. One point to note here is that we would like adoption of technology by industry/vendors as it gets stabilised. It's been roughly 3 years since JDBC 3.0 came out and we are getting ready for next release http://www.jcp.org/en/jsr/detail?id=221 All said, once again, we are aware of problems stated below and trying to see how we can help the developer community and industry leverage the new API's as they come. thanks, Amit Handa, Sun Microsystems Inc. Kevin MacClay wrote: > JDBC Developers, > > What are your plans for supporting the upcoming JDK 1.5 including > RowSets? I tried using the CachedRowSet class with the latest build of > JDK 1.5 and the latest JDBC3 driver build, and ran into this error: > > org.postgresql.util.PSQLException: This method is not yet implemented. > at org.postgresql.Driver.notImplemented(Driver.java:413) > at > org.postgresql.jdbc3.AbstractJdbc3DatabaseMetaData.locatorsUpdateCopy(AbstractJdbc3DatabaseMetaData.java:339) > > at > com.sun.rowset.CachedRowSetImpl.initMetaData(CachedRowSetImpl.java:691) > at > com.sun.rowset.CachedRowSetImpl.populate(CachedRowSetImpl.java:597) > at > com.sun.rowset.internal.CachedRowSetReader.readData(CachedRowSetReader.java:170) > > at > com.sun.rowset.CachedRowSetImpl.execute(CachedRowSetImpl.java:727) > > As I understand it, JDK 1.5 uses JDBC 3.0 (same as JDK 1.4). The only > thing new here is the CachedRowSet. The error seems to suggest that the > JDBC driver does not implement a method in the JDBC 3.0 spec that the > CachedRowSet now uses. > > JDBC Driver: PG7.4 Build 214 JDBC3 > JDK Version: JDK 1.5.0 Beta 3 Build 55 > (let me know if you'd like a code sample) > > Just so you know, I have tried the CachedRowSet class in a previous JDK > 1.5 build and received a different error: > > org.postgresql.util.PSQLException: A result was returned when none was > expected. > at > org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:275) > > at > com.sun.rowset.internal.CachedRowSetReader.readData(CachedRowSetReader.java:146) > > at > com.sun.rowset.CachedRowSetImpl.execute(CachedRowSetImpl.java:583) > at RowSetTest.testCachedRowSet1(RowSetTest.java:52) > at RowSetTest.main(RowSetTest.java:19) > > I was puzzled why the executeUpdate() method was getting invoked when I > was performing a SELECT. It looks like something in the > CachedRowSetReader.readData() has changed (for the better?) in this > newer JDK build. > > Thank you, > Kevin MacClay >