From: | "Ian Brandt" <ian(at)ianbrandt(dot)com> |
---|---|
To: | "PostgreSQL JDBC" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | JDBC3 Sugquestion |
Date: | 2002-02-17 16:12:44 |
Message-ID: | 05ce01c1b7cd$ef1dc990$c6b33c18@IBRANDTMOBILE |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hi,
I am interested in JDBC3 support for PostgreSQL. I was going through the
archived posts with regard to this, and have a half suggestion, half
question (hence the new word I just made up in the subject)...
Instead of the previously suggested code forking, build process changing,
and RTTI related ideas, would it be possible to address the problem of
supporting multiple JDBC versions with source control? Here's a rough idea
of how this might work (born out of much ignorance with regard to your
development practices!)...
Create a new CVS repository for JDBC. Take the existing code, extract and
rework everything such as to make a JDBC1 compliant implementation. This
would involve some re-packaging. Everything JDBC related that is currently
under org.postgresql would be moved one level deeper to org.postgresql.jdbc,
except for the stuff currently under org.postgresql.jdbc1, which would be
moved/merged to also be in org.postgresql.jdbc. Once everything is reworked
and checked in, create a jdbc1 branch. Then take the stuff currently in the
org.postgresql.jdbc2 package, and rework that into org.postgresql.jdbc in
this new repository as well, so to have a JDBC2 compliant implementation.
Create a jdbc2 branch.
Updating to JDBC3,4,etc. would then involve updating the existing code to be
compliant, and creating a new branch. The driver would be distributed as
pgjdbc1.jar, pgjdbc2.jar, etc. simply by checking out the corresponding
branch, building under the appropriate jdk, and jar'ing it up. Bug fixes
could be done in the lowest appropriate branch, and merged forward as
appropriate.
As far as users are concerned, having to use the different jar and classpath
based on the JDK/JDBC version they desire to use shouldn't be an issue.
This is very commonplace for such things.
So I hope this idea isn't totally out in left field! Either way I look
forward to JDBC3 support.
Thanks,
Ian
From | Date | Subject | |
---|---|---|---|
Next Message | Tiago Antao | 2002-02-17 18:15:56 | DatabaseMetadata |
Previous Message | Barry Lind | 2002-02-17 00:56:10 | Re: JDBC |