Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 2D9AE9FB743 for ; Fri, 3 Aug 2007 22:28:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 18050-09-2 for ; Fri, 3 Aug 2007 22:28:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by postgresql.org (Postfix) with ESMTP id 129239FB6AF for ; Fri, 3 Aug 2007 22:28:39 -0300 (ADT) Received: by fk-out-0910.google.com with SMTP id b27so935636fka for ; Fri, 03 Aug 2007 18:28:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:organization:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=GyUpbEAG2veMxOTxmzCNiyGmzPKkV6QV9U9wpalO+skeK/twzLBvGlulYAECWdo0zNInFsZ//raCZO5b1Rm8mv5hmTTS79MtSeWRY+DwbFlN/z/3o2/gugvPDAyO4UoDTuYotjFQheojFl2r3jkBAC9lNGnbkKDIznpt32Fh+Hg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:organization:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=uggthtTv/vVbyyd3dk5iJUD7FS2vHWpUiysbuXb+Pwv7wrwz1v841e2ZfbE/+prT0zES8+kjkExc3y3+JrxY4sIIpMKgcDXLF0bYKVRWQ0EZiMSj46SvCrbaH/z4e+0Dn+UTlSrEMqHL4TWRjzvfAE1dh45D5AGTR5jSAnmBOB8= Received: by 10.86.4.2 with SMTP id 2mr2678085fgd.1186190918550; Fri, 03 Aug 2007 18:28:38 -0700 (PDT) Received: from ?192.168.1.212? ( [81.196.40.147]) by mx.google.com with ESMTPS id p9sm7425745fkb.2007.08.03.18.28.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Aug 2007 18:28:37 -0700 (PDT) Message-ID: <46B3D641.5050600@gmail.com> Date: Sat, 04 Aug 2007 04:28:33 +0300 From: =?ISO-8859-1?Q?Albert_L=E1szl=F3-R=F3bert?= Reply-To: albertlaszlorobert@gmail.com Organization: RSoft Solutions S.R.L. User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Oliver Jowett 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> <46B3D530.3060409@opencloud.com> In-Reply-To: <46B3D530.3060409@opencloud.com> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/30 X-Sequence-Number: 17343 Oliver Jowett wrote: > 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 > if i run that script from the console, it will execute it without a single warning. i generated the exception i got when i use the execute(): org.postgresql.util.PSQLException: ERROR: unterminated dollar-quoted string at or near "$BODY$ DECLARE vID INTEGER" at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:437) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:339) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:331) this is the starting part of a function declaration. albertlr