From: Dmitry Tkach <dmitry@openratings.com>
To: Csaba Nagy <nagy@ecircle-ag.com>
Cc: pgsql-jdbc-list <pgsql-jdbc@postgresql.org>
Subject: Re: Prepared Statements
Date: Mon, 21 Jul 2003 12:29:12 -0400
Message-ID: <3F1C14D8.2070302@openratings.com> (raw)
In-Reply-To: <1058803785.24801.357.camel@coppola.ecircle.de>
References: <1058550328.19657.168.camel@topanga.toronto.redhat.com>
<3F183423.9030900@op enratings.com>
<1058551402.20165.177.camel@topanga.toronto.redhat.com>
<3F18 3AE0.8060204@openratings.com>
<20030719012555.GA20158@opencloud.com>
<3F1AC5D1.4010307@openratings.com>
<20030721000241.GB665@opencloud.com>
<3F1BF852.8090400@openratings.com>
<20030721143614.GH2506@opencloud.com>
<3F1BFC10.5050408@openratings.com>
<20030721150702.GK2506@opencloud.com>
<3F1C0613.9090100@redhat.com>
<1058801651.25132.345.camel@coppola.ecircle.de>
<3F1C0C2A.8090108@openratings.com>
<1058803785.24801.357.camel@coppola.ecircle.de>
>
>
>I mean how does your code decide if this or that functionality is
>available or not ? You can only make sure about that by trying out each
>driver version you support for some functionality.
>
Yup. That's what I do.
>
>For example if you have written code which tests for postgres driver and
>does not check the version of that driver, then after this change your
>runtime code will not work anymore with new postgres drivers, because it
>falsely presumes they support setting a list of integers as a parameter
>using the setObject(x, String, Types.INTEGER) workaround.
>
I know :-(
That's exactly why I was trying so hard to argue against it.
I guess, I am going to have to tell my customers that postgres driver
later than 7.3 is not supported...
or I'll have to modify the new driver to put the original functionality
back, and let them download my version :-(
>
>On the other hand if your code does check version numbers, then indeed
>you have to have some kind of list for each such feature of the drivers
>supporting it, with the versions which support it, and you have to
>follow when they stop doing it, etc. And you have to hard-code this
>information in the application code so it has it at runtime, to be able
>to make those decisions...
>
It is *really really* (I can't repeat it enough times) uncommon for
database vendors (other that postgres obviously - sigh) to make
backwards incompatible changes to their software. In other words, I
don't really need any 'list of versions' - just the earliest supported
version should be enough.
>
>I guess this is a lot of maintenance work...
>
>
It is not really that bad... not until I run into this
backwards-incompatible api changes...
It happened in the past once or twice (before I got here, so I don't
know the details), and they even had to drop support of one of the
databases because of that :-(
Dima
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: dmitry@openratings.com, nagy@ecircle-ag.com
Subject: Re: Prepared Statements
In-Reply-To: <3F1C14D8.2070302@openratings.com>
References: <1058550328.19657.168.camel@topanga.toronto.redhat.com> <1058551402.20165.177.camel@topanga.toronto.redhat.com> <20030719012555.GA20158@opencloud.com> <3F1AC5D1.4010307@openratings.com> <20030721000241.GB665@opencloud.com> <3F1BF852.8090400@openratings.com> <20030721143614.GH2506@opencloud.com> <3F1BFC10.5050408@openratings.com> <20030721150702.GK2506@opencloud.com> <3F1C0613.9090100@redhat.com> <1058801651.25132.345.camel@coppola.ecircle.de> <3F1C0C2A.8090108@openratings.com> <1058803785.24801.357.camel@coppola.ecircle.de> <3F1C14D8.2070302@openratings.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