pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Dmitry Tkach <dmitry@openratings.com>
Cc: pgsql-jdbc-list <pgsql-jdbc@postgresql.org>
Subject: Re: Prepared Statements
Date: Tue, 22 Jul 2003 02:56:57 +1200
Message-ID: <20030721145657.GJ2506@opencloud.com> (raw)
In-Reply-To: <3F1BFD6F.3040104@openratings.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>

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



view thread (105+ messages)  latest in thread

Message-ID: <20030721145657.GJ2506@opencloud.com>
Permalink:  ../20030721145657.GJ2506@opencloud.com/
Also on:    postgresql.org/message-id/20030721145657.GJ2506@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, dmitry@openratings.com
  Subject: Re: Prepared Statements
  In-Reply-To: <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> <20030721145657.GJ2506@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox