A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
executeUpdate() return type problem
Joined: Jul 05, 2007
Dec 12, 2007 23:26:00
I got -1 as return type of
When i write the following:-
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
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: executeUpdate() return type problem
executeUpdate() returning unexpected results
IBM 484 : Stmt.execute(Str) - multiple result sets?
resultset or prepared stmt?.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013