-
Jdbc
Hi,
Can any one help me please
In my application the resultset got 49 records.
rs.getFetchSize() shows 49, but when i say while(rs.next()) the pointer is not moving to the rs.next() block.
Can anyone help me how to work out, and im sure the resultset is scrollable.
Thanks.
-
Can you post relevant section of your program?
-
Thank you for ur reply,
The code looks like this
-
Thankyou for ur reply
The code looks like this
ResultSet rs=(ResultSet)element;
//System.out.println(rs.getFetchSize())----it is giving 49
while(rs.next())
{
if(flag)
*******
else ********
}
the control is not going into the rs.next() block, and Im sure the typecasting is correct as ResultSet.
Thanks.
-
That flag looks suspicious. I dont see anywhere you set it to true or false. I can comment better if you give the actual code there..