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 9BA43D1B267 for ; Wed, 23 Jun 2004 23:39:12 -0300 (ADT) 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 47738-07 for ; Thu, 24 Jun 2004 02:39:08 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id AFA2FD1B241 for ; Wed, 23 Jun 2004 23:39:02 -0300 (ADT) Received: from flood.opencloud.co.nz ([192.168.0.31] helo=opencloud.com ident=oliver) by yass.opencloud.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1BdK8Y-0001Qe-00; Thu, 24 Jun 2004 14:38:50 +1200 Message-ID: <40DA3EB8.4080700@opencloud.com> Date: Thu, 24 Jun 2004 14:38:48 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ALBERDI Ion Cc: pgsql-jdbc@postgresql.org Subject: Re: PoolingDataSource executeUpdate References: <1087999760.40d98f100eb07@www.enseirb.fr> In-Reply-To: <1087999760.40d98f100eb07@www.enseirb.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/156 X-Sequence-Number: 10358 ALBERDI Ion wrote: > What happens there is that with Connection Pooling the executeUpdate method > always returns 0, and that the database is not upgraded. > I'm currently forced to use the Jdbc3SimpleDataSource class (with this class > the application runs perfectly) but I would like to use Connection Pools to > improve the application's performances. I notice that the default autocommit setting in org.postgresql.jdbc2.optional.ConnectionPool is false. This is the opposite of the required Connection default and seems like a bug to me. If your application is expecting connections obtained from the datasource to have autocommit on by default, this could be the problem. -O