Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3647] Database drillbit test fails on Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2011-04-22T09:25:06.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sRelease 1.7.0, Sprint 2011-16
ComponentsAndroid
Labelsandroid, database
ReporterJacob Relkin
AssigneeDon Thorp
Created2011-04-21T15:30:36.000+0000
Updated2012-02-09T14:07:01.000+0000

Description

When running the Database drillbit test on an Android emulator, the testTypedGettersAndSetters test fails on line 292 with the following message: Line 292 in testTypedGettersAndSetters: should be: "0", was: "0.5555" valueOf(resultSet.fieldByName('f', Ti.Database.FIELD_TYPE_INT)).shouldBe(parseInt(counter * float_factor)) This appears to be an issue with Android's implementation of fieldByName because it is returning a float (0.555) when we're asking for an int (0).

Comments

  1. Don Thorp 2011-04-22

    Triaging.
  2. Don Thorp 2011-04-22

    The tests run clean on 2.1 and 2.2 emulators. I tried it on OSX and Opie tried it on Windows with a 2.1 emulator. I use this command line to launch drillbit for this test.
       drillbit/drillbit.py --platforms=android --tests=database --android-force-build
       
  3. Thomas Huelbert 2012-02-09

    closing as we are not able to reproduce using master (1.9.0 Feb 9 2012 09:46 rd47ce8a4)

JSON Source