• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Record Set closing

 
Tom Enders
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is my record set closed when I try to read from it the line after I execute the sql statement?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34396
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tom,
Can you show the relevant code snippet?
 
Tom Enders
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What database and JDBC driver are you using?

If you comment out the ifClosed() check, what happens? Could it be that your query returns no results?
 
Tom Enders
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's working now. The problem was with my inserts. They were not executing because I had some bad boolean logic surrounding them. So, the problem wasn't actually with this piece of code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic