Project: titanium
Issue TIMOB-18562: Windows: Database module doesn't properly clean up ResultSets or guard against accessing fields after being closed
We need to do a better job of finalizing result sets for the user, doing so in destructors. We need to check the status of closing the DB to ensure we're really closing it. If a result set is closed and the user calls field, or fieldByName, it will cause a crash because we don't guard against accessing a finalized prepared statement.
Story points: 5