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 674418BA0D0 for ; Fri, 11 Feb 2005 20:24:12 +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 26005-06 for ; Fri, 11 Feb 2005 20:23:54 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 0D7698B9E57 for ; Fri, 11 Feb 2005 20:23:54 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CzhKD-0006oq-00; Sat, 12 Feb 2005 09:23:37 +1300 Message-ID: <420D1444.3060806@opencloud.com> Date: Sat, 12 Feb 2005 09:23:32 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Schaber Cc: "pgsql-jdbc@postgresql.org" , PostGIS Development Discussion , alex bodnaru Subject: Re: PGConnection vs. Connection References: <420CD366.8040603@logi-track.com> In-Reply-To: <420CD366.8040603@logi-track.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/98 X-Sequence-Number: 12278 Markus Schaber wrote: > the addDataType() methods are carried by the > org.postgresql.Connection class instead of the > org.postgresql.PGConnection interface in 7.3 and up. That's unfortunate :( > - Prodiding a patch that is to be applied manually (rsp. by the debian > package build process) when building for 7.2. (this is our "current > practice"). That seems the simplest approach. Both the 7.2 driver and server are truely ancient now -- I think having to manually apply a patch if you want to run against them isn't unreasonable. > - Using reflection. This could allow us per run-time distinction to use > o.p.PGConnection.addDataType(Class) when running against pgjdbc 8.0, > o.p.PGConnection.addDataType(String) against 7.3/7.4, and > o.p.Connection.addDataType(String) against 7.2. This way we could ship > a single postgis.jar that runs against all pgjdbc versions. That seems the most flexible approach, but reflection can be a pain to deal with. For the packaging case, if you are going to build "PostGIS for 7.2" and "PostGIS for 8.0" as separate packages then there doesn't seem like much advantage to having a single PostGIS build/jar anyway. -O