pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Kranti Parisa <kranti.parisa@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Cc: guyr-ml1@burntmail.com
Subject: Re: Problem with Utilizing executeBatch() with stored procedures
Date: Mon, 7 May 2007 08:58:29 -0400
Message-ID: <4072DC0A-204E-4CA8-ACA8-2033FF43726C@fastcrypt.com> (raw)
In-Reply-To: <4478b4ac0705070553l71f23617m429e65ef6bbdadc6@mail.gmail.com>
References: <4478b4ac0705070056p469415d7ib6a1e746de7a0921@mail.gmail.com>
	<76AE553D-DCEA-4623-B78B-CD6BED35EB49@fastcrypt.com>
	<4478b4ac0705070408s7a09a038w5d7f846f3f6fb20e@mail.gmail.com>
	<D4D98BD0-556B-40D1-A904-997D4BE74C9F@fastcrypt.com>
	<4478b4ac0705070446j535baa1aye2596424ba87ebbe@mail.gmail.com>
	<A52433D0-4256-4D24-94EB-24A520F467F3@fastcrypt.com>
	<4478b4ac0705070553l71f23617m429e65ef6bbdadc6@mail.gmail.com>

What does the output of

org.postgresql.Driver.getVersion()

display ?


On 7-May-07, at 8:53 AM, Kranti Parisa wrote:

> Hi,
>
> Yes i added the jar file as external jar in Eclipse.
>
> Please find the screen shot in the attachment
>
> Regards
> Kranti
>
> On 5/7/07, Dave Cramer <pg@fastcrypt.com> wrote:
> Are you absolutely sure that you have the correct driver in the  
> classpath. The latest source has my code in it.
>
> Dave
>
> On 7-May-07, at 7:46 AM, Kranti Parisa wrote:
>
>> Hi,
>>
>> I downloaded the driver from the following link
>>
>> http://jdbc.postgresql.org/download.html
>>
>> and trying to write the following code in my test class in Eclipse
>>
>> CallableStatement cstmt = null;
>>         try {
>>             cstmt = con.prepareCall("{?=call test_cal_batch()}");
>>             cstmt.registerOutParameter(1, Types.INTEGER);
>>             cstmt.addBatch ();
>>             cstmt.executeBatch();
>>             //Object rs = cstmt.getObject(1);
>> /
>>         } catch (SQLException e) {
>>             // TODO Auto-generated catch block
>>             System.out.println(e.getNextException ());
>>         }
>>
>> getting the following error
>>
>> org.postgresql.util.PSQLException: A result was returned when none  
>> was expected.
>>
>> Please suggest me some steps
>>
>> Regards
>> Kanti
>>
>> On 5/7/07, Dave Cramer < pg@fastcrypt.com> wrote:
>> The latest released version is 8.2-505, this is what you want, and  
>> it will work with an 8.1 server.
>>
>> Dave
>>
>> On 7-May-07, at 7:08 AM, Kranti Parisa wrote:
>>
>>> Hi,
>>>
>>> I am using the following driver with PostgreSQL 8.1 version
>>>
>>> postgresql-8.1-406.jdbc3.jar
>>>
>>> Please let me know if the version is correct.
>>>
>>> Regards
>>> Kranti
>>>
>>> On 5/7/07, Dave Cramer < pg@fastcrypt.com> wrote:
>>> It's been fixed in the lastest version.
>>>
>>>
>>> Dave
>>> On 7-May-07, at 3:56 AM, 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
>>> >
>>> > ------------------
>>> > Best Regards
>>> > Kranti Kiran Kumar Parisa
>>> >
>>>
>>>
>>>
>>>
>>> -- 
>>> ------------------
>>> Best Regards
>>> Kranti Kiran Kumar Parisa
>>> Mobile: +91 - 9849 - 625 - 625             +91 - 9391 - 438 - 738
>>
>>
>>
>>
>> -- 
>> ------------------
>> Best Regards
>> Kranti Kiran Kumar Parisa
>> Mobile: +91 - 9849 - 625 - 625             +91 - 9391 - 438 - 738
>
>
>
>
> -- 
> ------------------
> Best Regards
> Kranti Kiran Kumar Parisa
> Mobile: +91 - 9849 - 625 - 625             +91 - 9391 - 438 - 738
> <postgresql.JPG>

view thread (16+ messages)  latest in thread

Message-ID: <4072DC0A-204E-4CA8-ACA8-2033FF43726C@fastcrypt.com>
Permalink:  ../4072DC0A-204E-4CA8-ACA8-2033FF43726C@fastcrypt.com/
Also on:    postgresql.org/message-id/4072DC0A-204E-4CA8-ACA8-2033FF43726C@fastcrypt.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: pg@fastcrypt.com, kranti.parisa@gmail.com, guyr-ml1@burntmail.com
  Subject: Re: Problem with Utilizing executeBatch() with stored procedures
  In-Reply-To: <4072DC0A-204E-4CA8-ACA8-2033FF43726C@fastcrypt.com>
  References: <4478b4ac0705070056p469415d7ib6a1e746de7a0921@mail.gmail.com> <76AE553D-DCEA-4623-B78B-CD6BED35EB49@fastcrypt.com> <4478b4ac0705070408s7a09a038w5d7f846f3f6fb20e@mail.gmail.com> <D4D98BD0-556B-40D1-A904-997D4BE74C9F@fastcrypt.com> <4478b4ac0705070446j535baa1aye2596424ba87ebbe@mail.gmail.com> <A52433D0-4256-4D24-94EB-24A520F467F3@fastcrypt.com> <4478b4ac0705070553l71f23617m429e65ef6bbdadc6@mail.gmail.com> <4072DC0A-204E-4CA8-ACA8-2033FF43726C@fastcrypt.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