Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-649] Android: DB values are being forced to String

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionHold
Resolution Date2011-04-15T02:33:45.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsAndroid
Labelsandroid, defect
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T02:33:44.000+0000
Updated2017-03-07T19:33:04.000+0000

Description

See http://developer.appcelerator.com/question/6641/android-fieldbyname-bool-inconsistencies"> Q&A

Looking through the code, I noticed that every type was being forced to String. Must be a porting error from 0.8.

Comments

  1. Don Thorp 2011-04-15

    Short of re-implementing the entire android SQLite package, there is no way to determine the underlying column type for a select. The caller will just have to know what type he/she wants and force it.

  2. Don Thorp 2011-04-15

    Ok vote/comment for this to be fixed over at Android bug section http://bit.ly/bsLdhw">Issue 2019: No way to extract arbitrary Object from Cursor

  3. Lee Morris 2017-03-07

    Closing ticket due to time passed.

JSON Source