Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B9A81632A88 for ; Thu, 22 Oct 2009 04:00:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66299-04 for ; Thu, 22 Oct 2009 07:00:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f216.google.com (mail-ew0-f216.google.com [209.85.219.216]) by mail.postgresql.org (Postfix) with ESMTP id BE68A6322A1 for ; Thu, 22 Oct 2009 04:00:45 -0300 (ADT) Received: by ewy12 with SMTP id 12so7608406ewy.24 for ; Thu, 22 Oct 2009 00:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=edPHzO00CUGzGbMxyowi5ex2FI6RhjTRwTeVdqjSXg8=; b=COb9UDAUzQiUsxupYdAi6vv/5Uu2bdYhSOjhoUss3ThcSkeYkRu3E0/MQpIa4kYI1a VJ5Iw/zSYLUy+R2gZPmx2Zp08PYNef8ZyHKAwVHIwz2QEm6cE2osMR0ZhEufgaAjB7yM z2pvXfjxVQfTTJKakREBhhE9IaXvoHWK6srwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=ax9ToQwuT1UXUbiB2VX4JCE2eJYg4ojy22No/UvfjDTp6b3B7VQgNYdftq7R9SKEsC kPv1RPS9vfuqzJ1LGRTugRy9dWSftQi+GnBf13o1G1Rh8PDgoV1OanenFrxrpWxVByYq E7RkhbhLfKG62RKd+ReAdzdL1JMb5+gMYt/TY= Received: by 10.216.88.7 with SMTP id z7mr274142wee.19.1256194844010; Thu, 22 Oct 2009 00:00:44 -0700 (PDT) Received: from ?172.16.60.87? (061196212225.cidr.odn.ne.jp [61.196.212.225]) by mx.google.com with ESMTPS id x6sm2168992gvf.1.2009.10.22.00.00.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Oct 2009 00:00:42 -0700 (PDT) Message-ID: <4AE00316.8030107@gmail.com> Date: Thu, 22 Oct 2009 16:00:38 +0900 From: taktos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.1.4pre) Gecko/20090915 Lightning/1.0pre Thunderbird/3.0b4 MIME-Version: 1.0 To: Oliver Jowett CC: Kevin Grittner , pgsql-jdbc@postgresql.org Subject: Re: commit and rollback don't throw exceptions when they should References: <4ADDCCE1020000250002BBEA@gw.wicourts.gov> <4ADF0210.4010100@opencloud.com> <4ADED72A020000250002BC40@gw.wicourts.gov> <4ADF85C8.6040408@opencloud.com> In-Reply-To: <4ADF85C8.6040408@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200910/36 X-Sequence-Number: 20038 I made a groovy code that tests whether Connection#commit() throws excepton when connection has been closed. http://github.com/taktos/JDBC-Driver-Test/blob/master/ConnectionTest.groovy I tested in environment below: Oracle 10g XE (ojdbc14.jar and ojdbc6.jar) MySQL 5.1 (mysql-connector-java-5.1.10.jar) h2database (h2-1.2.121.jar) PostgreSQL 8.3 (postgresql-8.3.605.jdbc4.jar) Drivers other than PosrgreSQL throws exception as I had expected, but PostgreSQL didn't throw exception. Regards, takiguchi