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 47F88D1B19F for ; Wed, 4 Aug 2004 19:38:24 -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 00887-08 for ; Wed, 4 Aug 2004 22:38:24 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id D4DFBD1B17A for ; Wed, 4 Aug 2004 19:38:19 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BsUOo-00006x-00; Thu, 05 Aug 2004 10:38:18 +1200 Message-ID: <41116556.3040801@opencloud.com> Date: Thu, 05 Aug 2004 10:38:14 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: chinni Cc: "pgsql-jdbc@postgresql.org" Subject: Re: [HACKERS] postgres and Jdbc 2.0 References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/28 X-Sequence-Number: 10750 (moved to pgsql-jdbc) chinni wrote: > Hi All! > Please note that the following functions are not implemented in the > postgres driver > even though they are a part of the JDBC 2.0 standard. > > Some of these may be party implemented, but may not be complete. Check a current driver from jdbc.postgresql.org. > public void setFetchDirection(int direction) throws SQLException Implemented already. > public boolean rowDeleted() throws SQLException > public boolean rowInserted() throws SQLException > public boolean rowUpdated() throws SQLException Implemented already; you may not like the fact they always return false, but this is accurate and consistent with what the database metadata claims. The server does not provide a way to implement these in any other way. > Statement.java > public int getFetchDirection() throws SQLException > public void setFetchDirection(int direction) throws SQLException Both implemented already. > public void registerOutParameter(int parameterIndex, int sqlType, > String typeName) throws SQLException The underlying server does not support out parameters. This is also why the getXXX accessors on CallableStatement are not implemented. > Array.java > public Object getArray(long index, int count, Map map) throws > SQLException > public java.sql.ResultSet getResultSet(long index, int count, > java.util.Map map) throws SQLException How are you obtaining the Array implementation? It's an interface. > There are a few things which I want to know. > > 1) Is there anything more which I am missing wrt JDBC 2.0 and postgres. You need to test a more recent driver. Many of the features you see as missing are actually just unsupported by the underlying server -- it's not something you can fix in the driver. I don't think that JDBC2 *requires* support for many of these features so long as the database metadata is accurate about what it claims to support. The fetch direction is a hint only -- you can't expect particular behaviour. There are improvements to cursor support that could be done, but they won't change the client-visible behaviour. > 2) If I want to add these features to JDBC driver, is there anything > that has to go to database itself. I don't understand the question. -O