X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 176879DD634 for ; Tue, 6 Dec 2005 19:02:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16423-04 for ; Tue, 6 Dec 2005 19:02:54 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id BAC369DD633 for ; Tue, 6 Dec 2005 19:02:48 -0400 (AST) 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 (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Ejlpc-0005UV-RH; Wed, 07 Dec 2005 12:02:44 +1300 Message-ID: <43961892.6070004@opencloud.com> Date: Wed, 07 Dec 2005 12:02:42 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051009) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer CC: Damon Anderson , pgsql-jdbc@postgresql.org Subject: Re: bug with 8.X level 4 driver? References: <0E851503-1490-4B97-93E5-BA7EC64D96E3@fastcrypt.com> In-Reply-To: <0E851503-1490-4B97-93E5-BA7EC64D96E3@fastcrypt.com> 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, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/34 X-Sequence-Number: 14365 Dave Cramer wrote: > Try using batches instead. The new driver can no longer do multiple > statements that way. It can handle this sort of multiple statement just fine, actually. However, the driver now correctly follows the JDBC spec, and you must use getMoreResults() to skip past the update counts returned by the INSERT to get at the actual ResultSet-returning query, then use getResultSet(). -O