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 491888B9EA2 for ; Thu, 10 Feb 2005 19:07:13 +0000 (GMT) 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 91060-02 for ; Thu, 10 Feb 2005 19:06:49 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id E558C8B9C44 for ; Thu, 10 Feb 2005 19:06:48 +0000 (GMT) Received: (qmail 4330 invoked by uid 1112); 10 Feb 2005 19:06:48 -0000 Date: Thu, 10 Feb 2005 14:06:48 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Thomas Hallgren Cc: "pgsql-jdbc@postgresql.org" , Filip Hrbek Subject: Re: PLJava and Database Meta Data In-Reply-To: Message-ID: References: <420B87A7.6080407@mailblocks.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/67 X-Sequence-Number: 12247 On Thu, 10 Feb 2005, Thomas Hallgren wrote: > PLJava has its own JDBC driver that is implemented directly on top of > JDBC. At present, it lacks support for DatabaseMetaData. One option for > us might be to borrow a lot of code from your driver, and perhaps apply > some modifications to it. This raises two questions: > > 1. Do you have any objection to us using parts of your code? Go right ahead. It's BSD licensed for just such a reason. > 2. If minor refactoring would make it possible for us to share the code > unmodified, would you see that as something worth pursuing? > Certainly something to look into, but I fear there may be too many differences, especially in how things like encoding and ResultSet creation are handled. Additionally the driver returns only the JDBC 2 spec fields even when built and called as a JDBC 3 driver. I've been thinking a little bit about how to return different fields for different JDBC versions without duplicating a whole lot of work, so some reorganization seems to be in order. It would be great to tackle both of these projects at the same time. Kris Jurka