X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1166A3A60D6 for ; Fri, 14 Jan 2005 01:25:35 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70371-01 for ; Fri, 14 Jan 2005 01:25:29 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 012F83A5E09 for ; Fri, 14 Jan 2005 01:25:30 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CpGDR-0004PH-00; Fri, 14 Jan 2005 14:25:29 +1300 Message-ID: <41E71F87.90400@opencloud.com> Date: Fri, 14 Jan 2005 14:25:27 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: Removing our datasource/pooling implementation. References: <41DDAE01.7030405@opencloud.com> <41E44DD6.2080809@opencloud.com> <41E464C4.6060904@opencloud.com> In-Reply-To: X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/107 X-Sequence-Number: 11987 Kris Jurka wrote: > That could work, although coming up with the list of fatal states might be > tricky. I've never paid much attention to the sql states that the driver > assigns itself, this might be the time to change that and remove the > PSQLException constructor that doesn't take a PSQLState argument. I've committed some changes that do this. Some of the SQL states I assigned aren't very good matches. The main one is that "you can't do that operation on that sort of object" type of error is mapped to "object not in prerequisite state". Any better ideas? PooledConnectionImpl has a list of SQL state classes that are considered fatal, and inspects each thrown exception's SQL state to see whether to tell the connection listener about the error. I also changed the default autocommit setting for our CPDS implementation to true to be consistent with normal connections & the JDBC spec. I seem to remember this was discussed on the list ages ago but I guess nothing ever got changed at the time. -O