{ "id": "111228", "key": "TIMOB-13070", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "15564", "description": "2013 Sprint 15 API", "name": "2013 Sprint 15 API", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-25T22:41:52.000+0000", "created": "2013-03-14T22:49:28.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-09T23:43:45.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": null, "attachment": [ { "id": "40803", "filename": "todo.sqlite", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-16T19:15:23.000+0000", "size": 65536, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Blackberry: Add support for the install method in Ti.DataBase", "creator": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "262081", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Attached is the todo.sqlite database file, place it in the Resources and use this code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: 'Install todo.sqlite'\r\n});\r\n\r\n// item text\r\n// done int\r\n\r\nbtn.addEventListener('click', function(){\r\n\r\n\tvar db = Ti.Database.open(\"todo.sqlite\" /*, \"otherName\" */);\r\n\r\n var sSQL = \"select * from todo\";\r\n var rows = db.execute(sSQL);\r\n \r\n\tTi.API.info('Row count: ' + rows.rowCount);\r\n\r\n while(rows.isValidRow())\r\n {\r\n Ti.API.info(rows.fieldByName('item'));\r\n rows.next();\r\n }\r\n\r\n alert('completed!');\r\n rows.close();\r\n db.close();\r\n});\r\n\r\nwin.add(btn);\r\n\r\nwin.open();\r\n{code}\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/131", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-16T19:15:39.000+0000", "updated": "2013-07-16T19:15:39.000+0000" }, { "id": "265844", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix . The install method works & installs the sqlite database using the code.\r\nThus closing.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.1.2.201308082014\r\nTi SDK : 3.1.2.v20130808180613\r\nMac OSX : 10.8.4\r\nAlloy : 1.2.0-alpha6\r\nCLI - 3.1.2-alpha\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-09T23:43:45.000+0000", "updated": "2013-08-09T23:43:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }