Hi everyone,

I have a situation that some ResultSets are created by a connection. At a given time, the connection is finalized and closed. The application crashes when I tries to access one these ResultSets (to get some information. e.g. getString(String name)), without "telling" us that it has been closed.

Is there any way to know whether a ResultSet has been closed? Besides that, I believe that right behavior would be throw an exception whenever an invalid ResulSet be accessed.

A similiar situation is described here: http://sqlanywhere-forum.sap.com/questions/9635/application-crashes-when-closing-a-preparedstatement.

I'm using ultraliteJ for Android version 12.0.1 build 3726.

asked 11 Oct '12, 12:47

marcelopaparelli's gravatar image

marcelopapar...
61348
accept rate: 0%

edited 11 Oct '12, 13:32


Thank you for the bug report. We should be able to reproduce the bug given this information.

As a workaround, I would suggest that you check the Connection that owns the ResultSet to see if it is open. If the Connection is not open, then do not use the ResultSet.

permanent link

answered 11 Oct '12, 13:34

Andy%20Quick's gravatar image

Andy Quick
2.2k2737
accept rate: 45%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×124
×75
×60
×15

question asked: 11 Oct '12, 12:47

question was seen: 760 times

last updated: 11 Oct '12, 13:40