pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem with Utilizing executeBatch() with stored procedures
16+ messages / 4 participants
[nested] [flat]
* Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 07:56 Kranti Parisa <kranti.parisa@gmail.com>
0 siblings, 2 replies; 16+ messages in thread
From: Kranti Parisa @ 2007-05-07 07:56 UTC (permalink / raw)
To: pgsql-jdbc; pg@fastcrypt.com; guyr-ml1@burntmail.com; +Cc: Kranti Parisa <kranti.parisa@gmail.com>
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
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 10:47 Dave Cramer <pg@fastcrypt.com>
parent: Kranti Parisa <kranti.parisa@gmail.com>
1 sibling, 2 replies; 16+ messages in thread
From: Dave Cramer @ 2007-05-07 10:47 UTC (permalink / raw)
To: Kranti Parisa <kranti.parisa@gmail.com>; +Cc: pgsql-jdbc; guyr-ml1@burntmail.com
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
>
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 11:08 Kranti Parisa <kranti.parisa@gmail.com>
parent: Dave Cramer <pg@fastcrypt.com>
1 sibling, 1 reply; 16+ messages in thread
From: Kranti Parisa @ 2007-05-07 11:08 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc; guyr-ml1@burntmail.com
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
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 11:31 Dave Cramer <pg@fastcrypt.com>
parent: Kranti Parisa <kranti.parisa@gmail.com>
0 siblings, 1 reply; 16+ messages in thread
From: Dave Cramer @ 2007-05-07 11:31 UTC (permalink / raw)
To: Kranti Parisa <kranti.parisa@gmail.com>; +Cc: pgsql-jdbc; guyr-ml1@burntmail.com
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
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 11:46 Kranti Parisa <kranti.parisa@gmail.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 16+ messages in thread
From: Kranti Parisa @ 2007-05-07 11:46 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc; guyr-ml1@burntmail.com
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
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 12:39 Dave Cramer <pg@fastcrypt.com>
parent: Kranti Parisa <kranti.parisa@gmail.com>
0 siblings, 1 reply; 16+ messages in thread
From: Dave Cramer @ 2007-05-07 12:39 UTC (permalink / raw)
To: Kranti Parisa <kranti.parisa@gmail.com>; +Cc: pgsql-jdbc; guyr-ml1@burntmail.com
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
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 12:58 Dave Cramer <pg@fastcrypt.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 16+ messages in thread
From: Dave Cramer @ 2007-05-07 12:58 UTC (permalink / raw)
To: Kranti Parisa <kranti.parisa@gmail.com>; +Cc: pgsql-jdbc; guyr-ml1@burntmail.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>
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 13:01 Kranti Parisa <kranti.parisa@gmail.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 0 replies; 16+ messages in thread
From: Kranti Parisa @ 2007-05-07 13:01 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: pgsql-jdbc; guyr-ml1@burntmail.com
Hi,
I am getting the following
>>>>>>>>>>>>>>>>>>> PostgreSQL 8.2 JDBC3 with SSL (build 505)
On 5/7/07, Dave Cramer <pg@fastcrypt.com> wrote:
>
> 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>
>
>
>
--
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625 +91 - 9391 - 438 - 738
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 13:02 Kris Jurka <books@ejurka.com>
parent: Dave Cramer <pg@fastcrypt.com>
1 sibling, 1 reply; 16+ messages in thread
From: Kris Jurka @ 2007-05-07 13:02 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: Kranti Parisa <kranti.parisa@gmail.com>; pgsql-jdbc; guyr-ml1@burntmail.com
On Mon, 7 May 2007, Dave Cramer wrote:
> It's been fixed in the lastest version.
>
When was this fixed? As far as I recall you made a patch to fix this, but
never committed it or shared it with the list. If you believe you
committed this, could you point us to the commit message?
Kris Jurka
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 13:11 Dave Cramer <pg@fastcrypt.com>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 16+ messages in thread
From: Dave Cramer @ 2007-05-07 13:11 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: Kranti Parisa <kranti.parisa@gmail.com>; pgsql-jdbc; guyr-ml1@burntmail.com
Crap, you're correct,
I just committed it.
Dave
On 7-May-07, at 9:02 AM, Kris Jurka wrote:
>
>
> On Mon, 7 May 2007, Dave Cramer wrote:
>
>> It's been fixed in the lastest version.
>>
>
> When was this fixed? As far as I recall you made a patch to fix
> this, but never committed it or shared it with the list. If you
> believe you committed this, could you point us to the commit message?
>
> Kris Jurka
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 13:19 Kranti Parisa <kranti.parisa@gmail.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 16+ messages in thread
From: Kranti Parisa @ 2007-05-07 13:19 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc; guyr-ml1@burntmail.com
Hi,
So finally.. we cant solve this problem now?
On 5/7/07, Dave Cramer <pg@fastcrypt.com> wrote:
>
> Crap, you're correct,
>
> I just committed it.
>
> Dave
> On 7-May-07, at 9:02 AM, Kris Jurka wrote:
>
> >
> >
> > On Mon, 7 May 2007, Dave Cramer wrote:
> >
> >> It's been fixed in the lastest version.
> >>
> >
> > When was this fixed? As far as I recall you made a patch to fix
> > this, but never committed it or shared it with the list. If you
> > believe you committed this, could you point us to the commit message?
> >
> > Kris Jurka
>
>
--
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625 +91 - 9391 - 438 - 738
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 13:26 Dave Cramer <pg@fastcrypt.com>
parent: Kranti Parisa <kranti.parisa@gmail.com>
0 siblings, 1 reply; 16+ messages in thread
From: Dave Cramer @ 2007-05-07 13:26 UTC (permalink / raw)
To: Kranti Parisa <kranti.parisa@gmail.com>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc; guyr-ml1@burntmail.com
Sure, just grab the source from CVS and build the jar.
Dave
On 7-May-07, at 9:19 AM, Kranti Parisa wrote:
> Hi,
>
> So finally.. we cant solve this problem now?
>
>
>
> On 5/7/07, Dave Cramer <pg@fastcrypt.com> wrote:
> Crap, you're correct,
>
> I just committed it.
>
> Dave
> On 7-May-07, at 9:02 AM, Kris Jurka wrote:
>
> >
> >
> > On Mon, 7 May 2007, Dave Cramer wrote:
> >
> >> It's been fixed in the lastest version.
> >>
> >
> > When was this fixed? As far as I recall you made a patch to fix
> > this, but never committed it or shared it with the list. If you
> > believe you committed this, could you point us to the commit
> message?
> >
> > Kris Jurka
>
>
>
>
> --
> ------------------
> Best Regards
> Kranti Kiran Kumar Parisa
> Mobile: +91 - 9849 - 625 - 625 +91 - 9391 - 438 - 738
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 13:29 Kranti Parisa <kranti.parisa@gmail.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 16+ messages in thread
From: Kranti Parisa @ 2007-05-07 13:29 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc; guyr-ml1@burntmail.com
ook..
I havent done this before.. i will try to get that. but if its possible for
you, please send me the jar file. it would be a great help.
On 5/7/07, Dave Cramer <pg@fastcrypt.com> wrote:
>
> Sure, just grab the source from CVS and build the jar.
> Dave
> On 7-May-07, at 9:19 AM, Kranti Parisa wrote:
>
> Hi,
>
> So finally.. we cant solve this problem now?
>
>
>
> On 5/7/07, Dave Cramer <pg@fastcrypt.com> wrote:
> >
> > Crap, you're correct,
> >
> > I just committed it.
> >
> > Dave
> > On 7-May-07, at 9:02 AM, Kris Jurka wrote:
> >
> > >
> > >
> > > On Mon, 7 May 2007, Dave Cramer wrote:
> > >
> > >> It's been fixed in the lastest version.
> > >>
> > >
> > > When was this fixed? As far as I recall you made a patch to fix
> > > this, but never committed it or shared it with the list. If you
> > > believe you committed this, could you point us to the commit message?
> > >
> > > Kris Jurka
> >
> >
>
>
> --
> ------------------
> 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
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 13:47 Dave Cramer <pg@fastcrypt.com>
parent: Kranti Parisa <kranti.parisa@gmail.com>
0 siblings, 1 reply; 16+ messages in thread
From: Dave Cramer @ 2007-05-07 13:47 UTC (permalink / raw)
To: Kranti Parisa <kranti.parisa@gmail.com>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc; guyr-ml1@burntmail.com
Kranti,
If you have Ant installed it's pretty easy,
Just get the source,and type ant in the source directory.
The problem is my build is for java 6 currently, which I'm sure you
don't want.
Dave
On 7-May-07, at 9:29 AM, Kranti Parisa wrote:
> ook..
>
> I havent done this before.. i will try to get that. but if its
> possible for you, please send me the jar file. it would be a great
> help.
>
> On 5/7/07, Dave Cramer <pg@fastcrypt.com> wrote:
> Sure, just grab the source from CVS and build the jar.
>
> Dave
>
> On 7-May-07, at 9:19 AM, Kranti Parisa wrote:
>
>> Hi,
>>
>> So finally.. we cant solve this problem now?
>>
>>
>>
>> On 5/7/07, Dave Cramer < pg@fastcrypt.com> wrote:
>> Crap, you're correct,
>>
>> I just committed it.
>>
>> Dave
>> On 7-May-07, at 9:02 AM, Kris Jurka wrote:
>>
>> >
>> >
>> > On Mon, 7 May 2007, Dave Cramer wrote:
>> >
>> >> It's been fixed in the lastest version.
>> >>
>> >
>> > When was this fixed? As far as I recall you made a patch to fix
>> > this, but never committed it or shared it with the list. If you
>> > believe you committed this, could you point us to the commit
>> message?
>> >
>> > Kris Jurka
>>
>>
>>
>>
>> --
>> ------------------
>> 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
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 13:49 Kranti Parisa <kranti.parisa@gmail.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 0 replies; 16+ messages in thread
From: Kranti Parisa @ 2007-05-07 13:49 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc; guyr-ml1@burntmail.com
Hi Dave,
Fine, i will try to get that.
Thanks
On 5/7/07, Dave Cramer <pg@fastcrypt.com> wrote:
>
> Kranti,
> If you have Ant installed it's pretty easy,
>
> Just get the source,and type ant in the source directory.
>
> The problem is my build is for java 6 currently, which I'm sure you don't
> want.
>
> Dave
> On 7-May-07, at 9:29 AM, Kranti Parisa wrote:
>
> ook..
>
> I havent done this before.. i will try to get that. but if its possible
> for you, please send me the jar file. it would be a great help.
>
> On 5/7/07, Dave Cramer <pg@fastcrypt.com> wrote:
> >
> > Sure, just grab the source from CVS and build the jar.
> > Dave
> > On 7-May-07, at 9:19 AM, Kranti Parisa wrote:
> >
> > Hi,
> >
> > So finally.. we cant solve this problem now?
> >
> >
> >
> > On 5/7/07, Dave Cramer < pg@fastcrypt.com> wrote:
> > >
> > > Crap, you're correct,
> > >
> > > I just committed it.
> > >
> > > Dave
> > > On 7-May-07, at 9:02 AM, Kris Jurka wrote:
> > >
> > > >
> > > >
> > > > On Mon, 7 May 2007, Dave Cramer wrote:
> > > >
> > > >> It's been fixed in the lastest version.
> > > >>
> > > >
> > > > When was this fixed? As far as I recall you made a patch to fix
> > > > this, but never committed it or shared it with the list. If you
> > > > believe you committed this, could you point us to the commit
> > > message?
> > > >
> > > > Kris Jurka
> > >
> > >
> >
> >
> > --
> > ------------------
> > 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
^ permalink raw reply [nested|flat] 16+ messages in thread
* Re: Problem with Utilizing executeBatch() with stored procedures
@ 2007-05-07 16:48 Guy Rouillier <guyr-ml1@burntmail.com>
parent: Kranti Parisa <kranti.parisa@gmail.com>
1 sibling, 0 replies; 16+ messages in thread
From: Guy Rouillier @ 2007-05-07 16:48 UTC (permalink / raw)
To: pgsql-jdbc
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
^ permalink raw reply [nested|flat] 16+ messages in thread
end of thread, other threads:[~2007-05-07 16:48 UTC | newest]
Thread overview: 16+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-05-07 07:56 Problem with Utilizing executeBatch() with stored procedures Kranti Parisa <kranti.parisa@gmail.com>
2007-05-07 10:47 ` Dave Cramer <pg@fastcrypt.com>
2007-05-07 11:08 ` Kranti Parisa <kranti.parisa@gmail.com>
2007-05-07 11:31 ` Dave Cramer <pg@fastcrypt.com>
2007-05-07 11:46 ` Kranti Parisa <kranti.parisa@gmail.com>
2007-05-07 12:39 ` Dave Cramer <pg@fastcrypt.com>
2007-05-07 12:58 ` Dave Cramer <pg@fastcrypt.com>
2007-05-07 13:01 ` Kranti Parisa <kranti.parisa@gmail.com>
2007-05-07 13:02 ` Kris Jurka <books@ejurka.com>
2007-05-07 13:11 ` Dave Cramer <pg@fastcrypt.com>
2007-05-07 13:19 ` Kranti Parisa <kranti.parisa@gmail.com>
2007-05-07 13:26 ` Dave Cramer <pg@fastcrypt.com>
2007-05-07 13:29 ` Kranti Parisa <kranti.parisa@gmail.com>
2007-05-07 13:47 ` Dave Cramer <pg@fastcrypt.com>
2007-05-07 13:49 ` Kranti Parisa <kranti.parisa@gmail.com>
2007-05-07 16:48 ` Guy Rouillier <guyr-ml1@burntmail.com>
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