Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1982] ResultSet fieldByName method only returns strings

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-08-21T16:39:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid
ReporterPaul Dowsett
AssigneeNeeraj Gupta
Created2011-04-15T03:07:10.000+0000
Updated2017-03-14T05:23:57.000+0000

Description

This is more of a feature request and, according to Don, it only affects Android. However, it's quite an inconvenience.

Currently, any numeric data output from fieldByName must be wrapped in parseInt or parseFloat to obtain usable data, which makes the code unnecessarily verbose.

According to Don, "on Android they didn't implement getObject() so we can't get the raw type". His proposed solution is for Titanium to provide methods for each datatype so that the output data can be used directly.

Comments

  1. Junaid Younus 2012-08-21

    No test case provided, ticket marked as invalid.
  2. Neeraj Gupta 2012-08-21

    Please reopen this ticket if you can reproduce this issue with a more recent release.
  3. Lee Morris 2017-03-14

    Closing ticket as invalid.

JSON Source