From: dmp <danap@ttc-cmc.net>
To: Christopher BROWN <brown@reflexe.fr>
To: pgsql-jdbc@postgresql.org
Subject: Re: Pre-processing during build
Date: Wed, 17 Jun 2015 09:28:04 -0600
Message-ID: <55819204.6030308@ttc-cmc.net> (raw)
In-Reply-To: <CAHL_zcNyU=DUBQ6VY-TsQqcp02NBqdUNpggJQ60KVYLAGHrf=g@mail.gmail.com>
References: <000c01d0a7b6$97571ee0$c6055ca0$@eu>
<CADK3HHK9TUug9amtabv1a+27u_bb31FCsLBarWsPv_PD12JCcw@mail.gmail.com>
<CAB=Je-FC6NE7z=OMpfGRyOPk--Fw6Uci9iFbu+JQ1THfeuhgHA@mail.gmail.com>
<CADK3HHJo=bjA9z=ZBzk-vqxfu+0Eh4UmLd0WJUhngKAVYogz8w@mail.gmail.com>
<005101d0a86a$f18ffe90$d4affbb0$@eu>
<CAB=Je-G1+7x4LabgB6A4cF_RY0CV1RwbDryFXa0GioB_vg7o=g@mail.gmail.com>
<60b20bb834cf54db8232239b9c27fcc2@imap.procolix.com>
<CADK3HHLmYp34yxQzjEuGgsUW4+joghHZf+0FBr44K8i5hXA+BA@mail.gmail.com>
<CAH7T-appNMfqUL+ZnYW=q6Nj9JT3jbkPkMBwK6yT3nKdWrSTAQ@mail.gmail.com>
<CAHL_zcNyU=DUBQ6VY-TsQqcp02NBqdUNpggJQ60KVYLAGHrf=g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Christopher BROWN wrote:
> Then, merge all JARs into a single JAR. Clients could then refer to the
> specific driver version they require in code, or use a generic Driver class that
> (in the constructor) detects the appropriate JDBC version and fixes a "final"
> int or Enum field, used thereafter in "switch" blocks to call the appropriate
> driver version, acting as a lightweight proxy when the specific driver version
> can't be referred to (for backwards compatibility). More adventurous developers
> ..........................................
Somehow as someone who manages a generic database access tool I don't like the
sounds of this requirement. Why as a client developer should I have to detect
the appropriate Java Version then somehow figure out the user's requirement
for the Driver class to call in your JDBC? I don't have to do this for any other
database so why for PostgreSQL's JDBC.
It may be of no concern really, but that is going to require me to change
the coding in my client for instantiating your Driver class, which is the
same for all databases so far, all so that you can change your build process,
which does not appear to be broken.
How about backup and state the one, two, three pros, and cons for initiating
the change in the build process again. Then highlight what additional work
would be required in the code, etc. to accomplish the new build process. Then
the list could input on the proposal. Maybe that has already taken place and
I missed it?
danap.
> ~
> ~
> ~
> ~
> ~
> Hope that helps ; hope it's not redundant with regards to messages sent since I
> started typing away my 2 cents... In any case, I regularly use these techniques
> in production code with no accidents.
>
> --
> Christopher
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: danap@ttc-cmc.net, brown@reflexe.fr
Subject: Re: Pre-processing during build
In-Reply-To: <55819204.6030308@ttc-cmc.net>
References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <CADK3HHK9TUug9amtabv1a+27u_bb31FCsLBarWsPv_PD12JCcw@mail.gmail.com> <CAB=Je-FC6NE7z=OMpfGRyOPk--Fw6Uci9iFbu+JQ1THfeuhgHA@mail.gmail.com> <CADK3HHJo=bjA9z=ZBzk-vqxfu+0Eh4UmLd0WJUhngKAVYogz8w@mail.gmail.com> <005101d0a86a$f18ffe90$d4affbb0$@eu> <CAB=Je-G1+7x4LabgB6A4cF_RY0CV1RwbDryFXa0GioB_vg7o=g@mail.gmail.com> <60b20bb834cf54db8232239b9c27fcc2@imap.procolix.com> <CADK3HHLmYp34yxQzjEuGgsUW4+joghHZf+0FBr44K8i5hXA+BA@mail.gmail.com> <CAH7T-appNMfqUL+ZnYW=q6Nj9JT3jbkPkMBwK6yT3nKdWrSTAQ@mail.gmail.com> <CAHL_zcNyU=DUBQ6VY-TsQqcp02NBqdUNpggJQ60KVYLAGHrf=g@mail.gmail.com> <55819204.6030308@ttc-cmc.net>
* 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