Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A08ED2E02A1 for ; Wed, 5 Dec 2007 11:52:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 11707-06 for ; Wed, 5 Dec 2007 11:52:16 -0400 (AST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by postgresql.org (Postfix) with ESMTP id A11802E01DE for ; Wed, 5 Dec 2007 11:52:33 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so7919775waf for ; Wed, 05 Dec 2007 07:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=FmzSfG2GCtjsDjWZpzp5tfTsn/kZ5lpSflqqJmvtgbQ=; b=N9SNWlxQ7RRw58q+JCmyU60/LijKa7GdxBdBwHe1kySGMPzTz++0a202GAGiasem4MdxM+AiHVj+UCkoLR/r4IoRS87m+ckhgTJzPSWGvPhzBuW8mdbwlXRjsMWsc3c2M/SJ9Zy5QSYpiLHEXmPxPtdWhxomlBjZcmESI04s5Rg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=j4xGSaIdRVFkTb8HKRwsiDNHQ17ZwVygeCaSm9ibitU0DNiDpWSfF8lSKB2RULQw3rdG0QqtHMywaX7pHwS8deu7FnxS+CZaN3TtGZmON7a/apLZAnMGMwJy2SYW1KXj3WRnlH5lF/kamwIulxsnTSBTOsR4Z6lxeQCNleFEQ3c= Received: by 10.115.78.1 with SMTP id f1mr200545wal.1196869951207; Wed, 05 Dec 2007 07:52:31 -0800 (PST) Received: by 10.114.208.9 with HTTP; Wed, 5 Dec 2007 07:52:31 -0800 (PST) Message-ID: <4478b4ac0712050752kae43d65p46c5c08645d1e755@mail.gmail.com> Date: Wed, 5 Dec 2007 21:22:31 +0530 From: "Kranti K K Parisa [GetSet-India]" To: "Kris Jurka" Subject: Re: BatchUpdate exception Cc: pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3266_17994152.1196869951196" References: <4478b4ac0712050624u18cf3e8en81990c67ddf9da92@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/22 X-Sequence-Number: 17877 ------=_Part_3266_17994152.1196869951196 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Kris, Thanks for the reply. We are using Postgres 8.1 version. Does this mean we need to upgrade the database version also? or can use the driver with latest release? On Dec 5, 2007 9:06 PM, Kris Jurka wrote: > > > On Wed, 5 Dec 2007, Kranti K K Parisa [GetSet-India] wrote: > > > I am trying to add the callable statement into a batch in a for loop. > and > > then execute that batch using executeBatch. which throws the following > > exception. > > > > org.postgresql.util.PSQLException: A result was returned when none was > > expected. > > > > This was fixed pretty recently and is only available in the 8.3dev series > of drivers. Please upgrade and retry. > > Kris Jurka > > -- ------------------ Best Regards Kranti Kiran Kumar Parisa Mobile: +91 - 9849 - 625 - 625 +91 - 9391 - 438 - 738 ------=_Part_3266_17994152.1196869951196 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Kris,

Thanks for the reply.

We are using Postgres 8.1 version. Does this mean we need to upgrade the database version also? or can use the driver with latest release?



On Dec 5, 2007 9:06 PM, Kris Jurka <books@ejurka.com> wrote:


On Wed, 5 Dec 2007, Kranti K K Parisa [GetSet-India] wrote:

> I am trying to add the callable statement into a batch in a for loop. and
> then execute that batch using executeBatch. which throws the following
> exception.
>
> org.postgresql.util.PSQLException: A result was returned when none was
> expected.
>

This was fixed pretty recently and is only available in the 8.3dev series
of drivers.  Please upgrade and retry.

Kris Jurka




--
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625
           +91 - 9391 - 438 - 738 ------=_Part_3266_17994152.1196869951196--