[TIMOB-18562] Windows: Database module doesn't properly clean up ResultSets or guard against accessing fields after being closed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-04-15T17:06:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Kota Iguchi |
Created | 2015-02-12T23:11:31.000+0000 |
Updated | 2017-03-14T12:28:05.000+0000 |
Description
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.
https://github.com/appcelerator/titanium_mobile_windows/pull/220
Closing ticket as fixed.