A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
executeUpdate() return type problem
Joined: Jul 05, 2007
Dec 12, 2007 23:26:00
I got -1 as return type of CallableStatement query.
When i write the following:-
CallableStatement callStmt = CallableStatement.prepareCall(My call to procedure);
int intRet = callStmt.executeUpdate();
Please tell me why return type of executeUpdate() could be -1?
Joined: Oct 06, 2007
Dec 13, 2007 00:04:00
you have a SQL error that you are not catching
Joined: Dec 12, 2007
Dec 13, 2007 01:12:00
I think the executeUpdate() will return either zero or other integer value.
You say that you have got -1; then it indicates the the row count for the INSERT or UPDATE or DELETE statement
Have a Good Day........<br />Sajj Bala Subrahmanyam
I agree. Here's the link:
subject: executeUpdate() return type problem
IBM 484 : Stmt.execute(Str) - multiple result sets?
resultset or prepared stmt?.
executeUpdate() returning unexpected results
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014