{ "id": "174635", "key": "AC-6472", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-01-21T10:20:45.000+0000", "labels": [ "android" ], "versions": [ { "id": "17032", "name": "Appcelerator Studio 4.3.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-29T13:04:43.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "In Android, while reading a value from SQLite table giving the exponential value. \r\nBelow snippets code:\r\n\r\n{code}\r\n var db = Ti.App.encryptedDB.open('DB');\r\n\t\tdb.execute('Create table if not exists TestNumber(numb1 real)');\r\n\t\tvar sql = 'INSERT INTO TestNumber(numb1) values(-26326469)';\r\n\t\tdb.execute(sql);\r\n\t\t\r\n\t\tvar sSQL = \"SELECT * FROM TestNumber\";\r\n\t\tvar oData = db.execute(sSQL);\r\n\t\t\r\n\t\tif(oData.isValidRow)\r\n\t\t{\r\n\t\t\tvar val = oData.fieldByName(\"numb1\");\r\n\t\t\tTi.API.info(\"Value :\" + val);\r\n\t\t} \r\n\r\n \r\n Actual Output: -2.63265e+07\r\n Expected Output: -26326469\r\n{code}\r\nTitanium SDK {{8.2.1.GA}}\r\n\r\n{code}\r\nappcelerator.encrypteddatabase\r\nAndroid Device: 7.1.1\r\nDevice: Samsung tablet\r\nAndroid SDK Build: Android 9 API 28\r\n{code}", "attachment": [], "flagged": false, "summary": "Sqlite reading value got converted number to exponential form automatically in Android ", "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": null, "comment": { "comments": [ { "id": "453779", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please update on above query", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-23T04:43:50.000+0000", "updated": "2020-01-23T04:43:50.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }