pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guy Rouillier <guyr-ml1@burntmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Problem with Utilizing executeBatch() with stored procedures
Date: Mon, 07 May 2007 12:48:49 -0400
Message-ID: <463F5871.8000102@burntmail.com> (raw)
In-Reply-To: <4478b4ac0705070056p469415d7ib6a1e746de7a0921@mail.gmail.com>
References: <4478b4ac0705070056p469415d7ib6a1e746de7a0921@mail.gmail.com>

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



view thread (16+ messages)

Message-ID: <463F5871.8000102@burntmail.com>
Permalink:  ../463F5871.8000102@burntmail.com/
Also on:    postgresql.org/message-id/463F5871.8000102@burntmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: guyr-ml1@burntmail.com
  Subject: Re: Problem with Utilizing executeBatch() with stored procedures
  In-Reply-To: <463F5871.8000102@burntmail.com>
  References: <4478b4ac0705070056p469415d7ib6a1e746de7a0921@mail.gmail.com> <463F5871.8000102@burntmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox