Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 114559FB532 for ; Fri, 3 Aug 2007 22:24:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 50530-03 for ; Fri, 3 Aug 2007 22:24:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 10A299FB4E1 for ; Fri, 3 Aug 2007 22:24:09 -0300 (ADT) Received: from 222-154-135-183.jetstream.xtra.co.nz ([222.154.135.183] helo=[10.1.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IH8NA-00012Q-C7; Sat, 04 Aug 2007 13:24:04 +1200 Message-ID: <46B3D530.3060409@opencloud.com> Date: Sat, 04 Aug 2007 13:24:00 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: albertlaszlorobert@gmail.com CC: pgsql-jdbc@postgresql.org Subject: Re: PSQLException: Too many update results were returned. References: <373352.78463.qm@web32701.mail.mud.yahoo.com> <46B3CBA0.3040203@opencloud.com> <46B3CDEB.2060608@gmail.com> <46B3CF4F.4020705@opencloud.com> <46B3D25A.7000103@gmail.com> <46B3D39D.20001@opencloud.com> <46B3D474.90407@gmail.com> In-Reply-To: <46B3D474.90407@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/29 X-Sequence-Number: 17342 Albert László-Róbert wrote: > Oliver Jowett wrote: >> Albert László-Róbert wrote: >> >>> i wish i can do that. the files that contains those statements are up to >>> 500k ... and the majority of the code contain function implementations. >> Err ok if you're just reading from a file and giving it to the driver >> without any (or little) parsing, why exactly are you using batch >> updates in the first place? Can't you just use plain execute()? >> >> -O >> > i tryed, but there i got syntax error. If you're getting a syntax error on execute() then using executeBatch() is not going to help you since executeBatch() is really just an optimized special case of execute() .. I think you should be investigating this syntax error first of all. -O