X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C814FD1B34A for ; Wed, 4 Aug 2004 11:42:33 -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 57065-07 for ; Wed, 4 Aug 2004 14:42:38 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 48377D1B1CD for ; Wed, 4 Aug 2004 11:42:26 -0300 (ADT) Received: (qmail 30178 invoked from network); 4 Aug 2004 14:42:32 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 4 Aug 2004 14:42:32 -0000 Subject: Re: postgres and Jdbc 2.0 From: Dave Cramer Reply-To: pg@fastcrypt.com To: chinni Cc: "pgsql-hackers@postgresql.org" In-Reply-To: References: Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1091630609.2056.46.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 04 Aug 2004 10:43:30 -0400 Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) 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: 200408/170 X-Sequence-Number: 57142 First, there is a list for the jdbc driver. Second, which version are you using? I know some of these are implemented already. getUDT's, setFetchDirection, gettime, ... Dave On Wed, 2004-08-04 at 10:20, 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. > > > Blob.java > public long position(byte[] pattern, long start) throws SQLException > > Clob.java > public long position(String pattern, long start) throws SQLException > public long position(Clob pattern, long start) throws SQLException > > Connection.java > public Object getObject(String type, String value) throws SQLException > > DatabaseMetaData.java > public java.sql.ResultSet getUDTs(String catalog,String > schemaPattern,String typeNamePattern,int[] types) throws SQLException > > ResultSet.java > public Object getObject(int i, java.util.Map map) throws SQLException > public Ref getRef(int i) throws SQLException > public void setFetchDirection(int direction) throws SQLException > public boolean rowDeleted() throws SQLException > public boolean rowInserted() throws SQLException > public boolean rowUpdated() throws SQLException > > Statement.java > public int getFetchDirection() throws SQLException > public void setFetchDirection(int direction) throws SQLException > public void setRef(int i, Ref x) throws SQLException > public Blob getBlob(int i) throws SQLException > public Clob getClob(int i) throws SQLException > public Object getObject(int i, java.util.Map map) throws SQLException > public Ref getRef(int i) throws SQLException > public java.sql.Date getDate(int i, java.util.Calendar cal) throws > SQLException > public Time getTime(int i, java.util.Calendar cal) throws SQLException > public Timestamp getTimestamp(int i, java.util.Calendar cal) throws > SQLException > public void registerOutParameter(int parameterIndex, int sqlType, > String typeName) throws SQLException > public java.sql.Array getArray(int i) throws SQLException > > 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 > > > > 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. > > 2) If I want to add these features to JDBC driver, is there anything > that has to go to database itself. > > > thanks > naveen > > -- Dave Cramer 519 939 0336 ICQ # 14675561