From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: patch: streaming of bytea parameter values
Date: Mon, 24 May 2004 10:25:51 +1200
Message-ID: <40B124EF.1040000@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0405231441080.5428@leary.csoft.net>
References: <4085F25A.8060009@opencloud.com>
<Pine.BSO.4.56.0405220222030.20695@leary.csoft.net>
<40AF1DDE.90206@opencloud.com>
<Pine.BSO.4.56.0405221233190.20327@leary.csoft.net>
<40AFEF74.6080904@opencloud.com>
<Pine.BSO.4.56.0405230137560.5520@leary.csoft.net>
<40B07890.6090906@opencloud.com>
<Pine.BSO.4.56.0405231441080.5428@leary.csoft.net>
Kris Jurka wrote:
>>Being user-friendly when dealing with application errors is nice
>>behaviour to have, but it *is* a separate issue..
>
>
> Separate from what, correctness?
Yes.
> We both agree that a short stream or
> IOException is an error, but I'm not advocating the JDBC equivalent of
> System.exit() as a viable solution. What makes it OK for this
> particular error to destroy a Connection while no other application level
> error can?
The implementation of SQLState (or connectionErrorOccurred) across
different drivers is quite patchy. When writing portable applications
(or even driver-specific applications, to a lesser extent) you have to
assume that any SQLException you don't specifically recognize means your
connection is toast.
I don't see that tearing down the connection for a certain class of
hard-to-handle errors makes this situation any worse.
-O
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, books@ejurka.com
Subject: Re: patch: streaming of bytea parameter values
In-Reply-To: <40B124EF.1040000@opencloud.com>
References: <4085F25A.8060009@opencloud.com> <Pine.BSO.4.56.0405220222030.20695@leary.csoft.net> <40AF1DDE.90206@opencloud.com> <Pine.BSO.4.56.0405221233190.20327@leary.csoft.net> <40AFEF74.6080904@opencloud.com> <Pine.BSO.4.56.0405230137560.5520@leary.csoft.net> <40B07890.6090906@opencloud.com> <Pine.BSO.4.56.0405231441080.5428@leary.csoft.net> <40B124EF.1040000@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