{ "id": "174449", "key": "TIMOB-27615", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-11-22T10:52:43.000+0000", "created": "2019-11-20T07:47:01.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-11-22T10:52:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Hi, \r\n\r\nI 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.\r\n\r\nSo 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\".\r\n\r\nCan you please provide some suggestion on this. We are going to upgrade our sdk to the latest version. \r\n\r\nNote: This is happening in Android version 9.0 and iOS with same changes is working fine\r\n\r\nCheck below api is used for getting the value\r\n\r\nvar sql = Select something from sometable;\r\nvar executeQuery = Ti.App.AppDB.execute(sql);\r\nwhile(executeQuery.isValidRow())\r\n\r\n{\r\n var somedata = executeQuery.fieldByName(\"somecolumn\"); \r\n//somedata: null SDK 7.5.1.GA \r\n//somedata: false SDK 8.2.1.GA \r\n}", "attachment": [], "flagged": false, "summary": "Getting data from sqlite column value \"false\" instead of \"null\"", "creator": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 9 platform ", "comment": { "comments": [ { "id": "452841", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any Update on this enquiry ", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-21T08:58:23.000+0000", "updated": "2019-11-21T08:58:23.000+0000" }, { "id": "452852", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please provide the update on this enquiry ", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-21T14:06:49.000+0000", "updated": "2019-11-21T14:06:49.000+0000" }, { "id": "452862", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "[~shishir.roy] What is the datatype of your attribute which is returning null/false?\r\n\r\nThanks!", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2019-11-21T15:15:53.000+0000", "updated": "2019-11-21T15:15:53.000+0000" }, { "id": "452863", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Data type is TEXT", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-21T15:22:16.000+0000", "updated": "2019-11-21T15:22:16.000+0000" }, { "id": "452864", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "[~shishir.roy] \r\n\r\nWhat does it return with TI SDK 8.2.1.GA?\r\n\r\n{code:java}\r\nvar somedata = executeQuery.fieldByName(\"somecolumn\");\r\nTi.API.info( typeof somedata);\r\n{code}\r\n\r\nThanks!\r\n", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2019-11-21T15:26:24.000+0000", "updated": "2019-11-21T15:34:50.000+0000" }, { "id": "452865", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "var somedata = executeQuery.fieldByName(\"somecolumn\");\r\nTi.API.info( typeof data); // I need to check this value \r\nTi.API.info( data); // false ", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-21T15:28:26.000+0000", "updated": "2019-11-21T15:28:26.000+0000" }, { "id": "452867", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "The specific row of column value was empty / null / false? Let me know what does it return with TI SDK 8.2.1.GA\r\n\r\nvar somedata = executeQuery.fieldByName(\"somecolumn\");\r\nTi.API.info( typeof somedata); \r\n\r\nAlso, share your create table code.\r\n\r\nThanks!", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2019-11-21T15:44:39.000+0000", "updated": "2019-11-21T15:52:14.000+0000" }, { "id": "452882", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am able to resolved this issue, you can closed this ticket", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-22T09:53:38.000+0000", "updated": "2019-11-22T09:53:38.000+0000" }, { "id": "452884", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Thanks for your confirmation.", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2019-11-22T10:52:20.000+0000", "updated": "2019-11-22T10:52:20.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }