X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 8C1F4D1C4E3 for ; Mon, 21 Jul 2003 14:58:08 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 02640-10 for ; Mon, 21 Jul 2003 14:57:02 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 0BE5AD1C4E6 for ; Mon, 21 Jul 2003 11:57:02 -0300 (ADT) Received: from flood.opencloud.co.nz ([192.168.0.31] ident=mail) by yass.opencloud.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 19ec5z-0007kJ-00; Tue, 22 Jul 2003 02:56:59 +1200 Received: from oliver by flood.opencloud.co.nz with local (Exim 3.35 #1 (Debian)) id 19ec5x-00011i-00; Tue, 22 Jul 2003 02:56:57 +1200 Date: Tue, 22 Jul 2003 02:56:57 +1200 To: Dmitry Tkach Cc: pgsql-jdbc-list Subject: Re: Prepared Statements Message-ID: <20030721145657.GJ2506@opencloud.com> References: <1058551402.20165.177.camel@topanga.toronto.redhat.com> <3F183AE0.8060204@openratings.com> <20030719012555.GA20158@opencloud.com> <3F1AC5D1.4010307@openratings.com> <20030721000241.GB665@opencloud.com> <3F1B51C5.4080108@openratings.com> <20030721030157.GE665@opencloud.com> <3F1BF78F.4040604@openratings.com> <20030721144428.GI2506@opencloud.com> <3F1BFD6F.3040104@openratings.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F1BFD6F.3040104@openratings.com> User-Agent: Mutt/1.5.4i From: Oliver Jowett X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/205 X-Sequence-Number: 7589 On Mon, Jul 21, 2003 at 10:49:19AM -0400, Dmitry Tkach wrote: > > > > > >Pack the support code for all drivers in, yes. The drivers themselves you > >don't need to provide, as the support classes don't get loaded unless the > >particular driver it supports is present. > > > > > I need to *compile* all of that code. > And to *compile* it, I'll need to have all of those drivers available... > and I'll need all the possible versions of those drivers too, because I > don't know which version the customer will be using... > > This is just simply impossible to do. So you have to pick a set of drivers to support and go with that. If you have multiple interface versions that are mutually incompatible, build multiple versions of your extensions independantly of each other. Yes, it's messy to build, but not impossible and certainly no worse than any other situation where you have to support multiple versions of a dependent library. If you don't want to support a large number of driver versions, those versions you don't support can be handled by the "generic" implementation I suggested in my previous email. I'm not sure this argument is really relevant to "what should setObject() vs. setArray() do?" any more. Replies off-list, please. -O