| Author |
Number of rows affected by sql:update
|
Eman Adenola
Greenhorn
Joined: Apr 03, 2011
Posts: 27
|
|
Hi,
I am trying to get the number of rows affected by an <sql:update> but it returns an exception
I have the following code
Except it returns an exception saying
Any ideas? Thanks
|
 |
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
var = updatereserved variable is store the count of affected rows.
|
Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
|
 |
Eman Adenola
Greenhorn
Joined: Apr 03, 2011
Posts: 27
|
|
Hi, yeah but the problem is when i do
updatereserved.rowCount i get an exception, are you suggesting I use the updatereserved variable directly?
|
 |
Sean Clark
Rancher
Joined: Jul 15, 2009
Posts: 377
|
|
Hey,
As the error says:
The object is an integer, so therefore it doesn't have a method called getRowCount().
Sean
|
I love this place!
|
 |
Eman Adenola
Greenhorn
Joined: Apr 03, 2011
Posts: 27
|
|
oh...yeah..I
I was thinking it returned an object like how a query does..will try it thanks.
|
 |
 |
|
|
subject: Number of rows affected by sql:update
|
|
|