Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4515] Android: Drillbit database test fails in Honeycomb because field(index) does not raise exception when index is out of bounds

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-07-25T12:14:30.000+0000
Affected Version/sRelease 1.7.1
Fix Version/sSprint 2011-29, Release 1.8.0
ComponentsAndroid
Labelsn/a
ReporterBill Dawson
AssigneeBill Dawson
Created2011-06-28T12:34:22.000+0000
Updated2014-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.

Comments

  1. Bill Dawson 2011-07-21

    [Pull request ready](https://github.com/appcelerator/titanium_mobile/pull/270)
  2. Don Thorp 2011-07-25

    Reviewed and tested.
  3. Natalie Huynh 2011-09-22

    Tested with version=1.8.0 timestamp=09/22/11 17:30 githash=5029d7d on Gslate 3.1 testDatabaseExceptions true 379 Success

JSON Source