pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
(no subject)
2+ messages / 2 participants
[nested] [flat]

* (no subject)
@ 2013-11-06 07:22 suri <surendranath1021@gmail.com>
  2013-11-06 19:38 ` Re: John R Pierce <pierce@hogranch.com>
  0 siblings, 1 reply; 2+ messages in thread

From: suri @ 2013-11-06 07:22 UTC (permalink / raw)
  To: pgsql-bugs

I have created a function to update the data in the table in postgres and i
have 33k records to update. When i was calling the function as SQL the data
is updated fine. But when i was calling the same function through callable
statement only about 28k records are updated in the table and it was
skipping the remaining records no exceptions have thrown. please help me on
this issue.

this is my code. CallableStatement callStatement =
ConnectionDB.getConnectionInstance().prepareCall(" { ? = call
functionname()}"); callStatement.registerOutParameter(1, Types.VARCHAR);
callStatement.execute();



/*- – - – - – – - – – - – – - – – - – – - – – - – – - – – - – – - – – - -

Please consider your environmental responsibility.
Before printing this e-mail message, ask yourself whether you really need a
hard copy.

Life is what happens to you, while you're busy making other plans

We do not inherit the earth from our ancestors; we borrow it from our
children.
Leave them a living planet reduce your carbon foot print.
------------------------------------------------------------
--------------------------------*/






yours suri chinna

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re:
  2013-11-06 07:22 (no subject) suri <surendranath1021@gmail.com>
@ 2013-11-06 19:38 ` John R Pierce <pierce@hogranch.com>
  0 siblings, 0 replies; 2+ messages in thread

From: John R Pierce @ 2013-11-06 19:38 UTC (permalink / raw)
  To: pgsql-bugs; surendranath1021@gmail.com

On 11/5/2013 11:22 PM, suri wrote:
>
> I have created a function to update the data in the table in postgres 
> and i have 33k records to update. When i was calling the function as 
> SQL the data is updated fine. But when i was calling the same function 
> through callable statement only about 28k records are updated in the 
> table and it was skipping the remaining records no exceptions have 
> thrown. please help me on this issue.
>
> this is my code. CallableStatement callStatement = 
> ConnectionDB.getConnectionInstance().prepareCall(" { ? = call 
> functionname()}"); callStatement.registerOutParameter(1, 
> Types.VARCHAR); callStatement.execute();
>

PostgreSQL has no 'call' statement, you use SELECT to call a function. 
    Is that code fragment Java or what?

there is insufficient information here to determine if this is in fact 
some sort of bug, or rather a user misunderstanding, or what.




-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-11-06 19:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-11-06 07:22  suri <surendranath1021@gmail.com>
2013-11-06 19:38 ` Re: John R Pierce <pierce@hogranch.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