Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27615] Getting data from sqlite column value "false" instead of "null"

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2019-11-22T10:52:43.000+0000
Affected Version/sRelease 8.2.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
Reportershishir.roy
AssigneeJoshua Quick
Created2019-11-20T07:47:01.000+0000
Updated2019-11-22T10:52:43.000+0000

Description

Hi, I wanted to get the data from sqlite database but it is not returning expected value when i upgraded the Titianium SDK from 7.5.1.GA to 8.2.1.GA. So in SDK 7.5.1.GA whenever empty value is fetch from sqlite database then its returing "null", but same thing in SDK 8.2.1.GA is returning "false". Can you please provide some suggestion on this. We are going to upgrade our sdk to the latest version. Note: This is happening in Android version 9.0 and iOS with same changes is working fine Check below api is used for getting the value var sql = Select something from sometable; var executeQuery = Ti.App.AppDB.execute(sql); while(executeQuery.isValidRow()) { var somedata = executeQuery.fieldByName("somecolumn"); //somedata: null SDK 7.5.1.GA //somedata: false SDK 8.2.1.GA }

Comments

  1. shishir.roy 2019-11-21

    Any Update on this enquiry
  2. shishir.roy 2019-11-21

    Please provide the update on this enquiry
  3. Motiur Rahman 2019-11-21

    [~shishir.roy] What is the datatype of your attribute which is returning null/false? Thanks!
  4. shishir.roy 2019-11-21

    Data type is TEXT
  5. Motiur Rahman 2019-11-21

    [~shishir.roy] What does it return with TI SDK 8.2.1.GA?
       var somedata = executeQuery.fieldByName("somecolumn");
       Ti.API.info( typeof somedata);
       
    Thanks!
  6. shishir.roy 2019-11-21

    var somedata = executeQuery.fieldByName("somecolumn"); Ti.API.info( typeof data); // I need to check this value Ti.API.info( data); // false
  7. Motiur Rahman 2019-11-21

    The specific row of column value was empty / null / false? Let me know what does it return with TI SDK 8.2.1.GA var somedata = executeQuery.fieldByName("somecolumn"); Ti.API.info( typeof somedata); Also, share your create table code. Thanks!
  8. shishir.roy 2019-11-22

    I am able to resolved this issue, you can closed this ticket
  9. Motiur Rahman 2019-11-22

    Thanks for your confirmation.

JSON Source