Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MSSQL7.0 resultset bug?

 
omar khan
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody.
I am using JDK1.3.0 and MSSQL7.0 on Win NT4.0
I stepped into a strange problem. I was wondering if anyone has eperienced it yet. The problem is this:
rs is a resultset
while (rs.next())
{
somecode
}
gives me a cursor error but
boolean mybool = rs.next();
while (mybool)
{
somecode
mybool=rs.next();
}
works ok
funny, isn't it?
[This message has been edited by OMAR KHAN (edited September 26, 2001).]
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds pretty strange...never heard of that one before! Are you sure you are not just overlooking a programming error?? Post the offending code along with the error message and maybe someone can sniff out an overlooked problem for you.
Jamie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic