X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B1CADD1B278 for ; Tue, 25 May 2004 08:39:15 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 92524-04 for ; Tue, 25 May 2004 08:38:57 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 214DFD1BA97 for ; Tue, 25 May 2004 08:38:53 -0300 (ADT) Received: (qmail 26347 invoked from network); 25 May 2004 11:38:52 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 25 May 2004 11:38:52 -0000 Subject: Re: patch: streaming of bytea parameter values From: Dave Cramer Reply-To: pg@fastcrypt.com To: Kris Jurka Cc: Oliver Jowett , "pgsql-jdbc@postgresql.org" In-Reply-To: References: <4085F25A.8060009@opencloud.com> <40AF1DDE.90206@opencloud.com> <40AFEF74.6080904@opencloud.com> <40B07890.6090906@opencloud.com> <40B124EF.1040000@opencloud.com> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1085485132.1591.129.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 25 May 2004 07:38:52 -0400 Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/167 X-Sequence-Number: 10177 We previously had a discussion about how to deal with this code, I think before this is committed I'd like to tag the code. Just so we can have a cvs version that folks can checkout while we sort out the issues with this. Dave On Mon, 2004-05-24 at 02:47, Kris Jurka wrote: > On Mon, 24 May 2004, Oliver Jowett wrote: > > > 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 think a reasonable coding method would be to catch an SQLException try > to rollback and if that throws an Exception then you give up the > Connection. > > Kris Jurka > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > > > > !DSPAM:40b19bce197952303717472! > > -- Dave Cramer 519 939 0336 ICQ # 14675561