Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > Re: CallableSta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 1915 of 2010
Post > Topic >>

Re: CallableStatement and getUpdateCount

by books@[EMAIL PROTECTED] (Kris Jurka) Apr 1, 2008 at 01:28 PM

On Tue, 1 Apr 2008, Albe Laurenz wrote:

> Hmmm. getUpdateCount() is defined in
> org/postgresql/jdbc2/AbstractJdbc2Statement.java as
>
>        if (isFunction)
>            return 1;
>

I would guess that this code was conceived without regard to returning 
sets.  For code that does {? = call f()} you expect the caller to fetch 
the result using CallableStatement.getXXX() so that's why the code isn't 
indicating that a ResultSet is returned even though there is one under the

hood.  The JDBC driver has no idea whether the function it's calling is 
returning a SETOF or not, so it can't use that to determine what to return

for getUpdateCount.

Perhaps we can differentiate between calls of the form {call f()} and {? =

call f()} ?

Kris Jurka

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
 




 6 Posts in Topic:
CallableStatement and getUpdateCount
sam@[EMAIL PROTECTED] (S  2008-03-31 16:29:11 
Re: CallableStatement and getUpdateCount
laurenz.albe@[EMAIL PROTE  2008-04-01 10:03:34 
Re: CallableStatement and getUpdateCount
books@[EMAIL PROTECTED]   2008-04-01 13:28:45 
Re: CallableStatement and getUpdateCount
laurenz.albe@[EMAIL PROTE  2008-04-02 10:25:30 
Re: CallableStatement and getUpdateCount
sam@[EMAIL PROTECTED] (S  2008-04-02 18:52:16 
Re: CallableStatement and getUpdateCount
laurenz.albe@[EMAIL PROTE  2008-04-03 10:25:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 22:37:42 CDT 2008.