[TIMOB-4515] Android: Drillbit database test fails in Honeycomb because field(index) does not raise exception when index is out of bounds
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-07-25T12:14:30.000+0000 |
Affected Version/s | Release 1.7.1 |
Fix Version/s | Sprint 2011-29, Release 1.8.0 |
Components | Android |
Labels | n/a |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-06-28T12:34:22.000+0000 |
Updated | 2014-06-19T12:46:30.000+0000 |
Description
Weirdly,
AbstractWindowedCursor.isNull(index)
returns true
when index
is out of bounds. So in our API, rs.field(9999)
(where rs is a ResultSet
) does not cause an error but rather returns null, even if there is only one column in the result set. Our drillbit database suite test testDatabaseExceptions
expects an exception to be thrown.
[Pull request ready](https://github.com/appcelerator/titanium_mobile/pull/270)
Reviewed and tested.
Tested with version=1.8.0 timestamp=09/22/11 17:30 githash=5029d7d on Gslate 3.1 testDatabaseExceptions true 379 Success