Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B9C9B9FB866 for ; Mon, 7 May 2007 13:49:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 73691-06 for ; Mon, 7 May 2007 13:49:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by postgresql.org (Postfix) with ESMTP id 53B4A9FB85E for ; Mon, 7 May 2007 13:49:07 -0300 (ADT) Received: from [127.0.0.1] ([72.66.94.86]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JHO006JJK1FV7P5@vms046.mailsrvcs.net> for pgsql-jdbc@postgresql.org; Mon, 07 May 2007 11:48:52 -0500 (CDT) Date: Mon, 07 May 2007 12:48:49 -0400 From: Guy Rouillier Subject: Re: Problem with Utilizing executeBatch() with stored procedures In-reply-to: <4478b4ac0705070056p469415d7ib6a1e746de7a0921@mail.gmail.com> To: pgsql-jdbc@postgresql.org Message-id: <463F5871.8000102@burntmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 000738-4, 05/07/2007), Outbound message X-Antivirus-Status: Clean References: <4478b4ac0705070056p469415d7ib6a1e746de7a0921@mail.gmail.com> User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/39 X-Sequence-Number: 17029 Kranti Parisa wrote: > Hi, > > I saw few threads about this topic, but not able to get the solution. > Please help me how can we solve this problem. > I have a stored procedure which has to execute for all the given > employee ids. so i want to do that as a batch to get performance. > > but i am getting this error > > org.postgresql.util.PSQLException: A result was returned when none was > expected > > A million thanks in advance.. > Hoping for a quick reply Can't do this with the current production drivers. I'll forward you a customized driver sent to me by Dave Cramer that allows invocation of stored procedures in batch. I haven't seen any commitment to add this feature to future drivers. -- Guy Rouillier