{ "id": "84892", "key": "TIMOB-7187", "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": [ { "id": "15499", "description": "2013 Sprint 13 API", "name": "2013 Sprint 13 API", "archived": true, "released": true, "releaseDate": "2013-07-01" }, { "id": "15111", "description": "2013 Sprint 13", "name": "2013 Sprint 13", "archived": true, "released": true, "releaseDate": "2013-07-01" }, { "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-01T07:18:43.000+0000", "created": "2012-01-13T17:13:37.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "module_api", "parity", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-12T09:17:57.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "iOS has both the isValidRow method and validRow property\r\n\r\nAndroid has the isValidRow method, but it doesn't currently have a validRow property.", "attachment": [ { "id": "40419", "filename": "testdb.db", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-01T07:10:53.000+0000", "size": 4096, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "TI API: validRow property exists in iOS, but not Android", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "236866", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Please verify this pull request: https://github.com/appcelerator/titanium_mobile/pull/3836\n\nThanks.", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-01T02:43:46.000+0000", "updated": "2013-02-01T02:43:46.000+0000" }, { "id": "260379", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Code: \n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor:'blue'\n});\n \nwin.addEventListener('open',function(e){\n Ti.API.info('WIN OPENED');\n var db = Ti.Database.open('testdb');\n db.execute('DROP TABLE IF EXISTS welcome');\n db.execute(\"CREATE TABLE IF NOT EXISTS welcome (title TEXT)\");\n db.execute(\"INSERT INTO welcome (title) VALUES (?)\",'one');\n db.execute(\"INSERT INTO welcome (title) VALUES (?)\",'two');\n db.close();\n});\n \nwin.addEventListener('click',function(e){\n var db = Ti.Database.open('testdb');\n var rows = db.execute(\"SELECT title FROM welcome\");\n Ti.API.info(\"ROW VALID property: \" + rows.validRow);\n Ti.API.info(\"ROW VALID method: \" + rows.isValidRow());\n \n rows.close();\n db.close();\n});\n \nwin.open();\n{code}\n\n1. Run app.\n2. Click on window. Observe log. Should see \"ROW VALID property: true\", \"ROW VALID method: true\"", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-01T07:09:14.000+0000", "updated": "2013-07-01T07:09:14.000+0000" }, { "id": "276306", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with:\r\n\r\nAppc-Studio: 3.2.0.201310181700\r\nSdk:3.2.0.v20131022171645\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.3), iPhone5(v7.0)\r\nXcode: 5\r\nOS: Mac OSX 10.8\r\n\r\nvalidRow property working for android.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T05:37:19.000+0000", "updated": "2013-10-23T05:37:19.000+0000" }, { "id": "276307", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Code used was:\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor:'blue'\n});\n \nwin.addEventListener('open',function(e){\n Ti.API.info('WIN OPENED');\n var db = Ti.Database.open('testdb');\n db.execute('DROP TABLE IF EXISTS welcome');\n db.execute(\"CREATE TABLE IF NOT EXISTS welcome (title TEXT)\");\n db.execute(\"INSERT INTO welcome (title) VALUES (?)\",'one');\n db.execute(\"INSERT INTO welcome (title) VALUES (?)\",'two');\n db.close();\n});\n \n var tbtn=Ti.UI.createButton({title:'Returns True',top:'5dp',height:'40dp'});\n var fbtn=Ti.UI.createButton({title:'Returns False', top:'55dp'});\n \n tbtn.addEventListener('click',function(e){\n var db = Ti.Database.open('testdb');\n var rows = db.execute(\"SELECT title FROM welcome where title='one'\");\n Ti.API.info(\"ROW VALID property: \" + rows.validRow);\n Ti.API.info(\"ROW VALID method: \" + rows.isValidRow());\n rows.close();\n db.close();\n});\n \nfbtn.addEventListener('click',function(e){\n var db = Ti.Database.open('testdb');\n var rows = db.execute(\"SELECT title FROM welcome where title='three'\");\n Ti.API.info(\"ROW VALID property: \" + rows.validRow);\n Ti.API.info(\"ROW VALID method: \" + rows.isValidRow());\n rows.close();\n db.close();\n});\n win.add(tbtn);\n win.add(fbtn);\nwin.open();\n{code}", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-23T06:13:11.000+0000", "updated": "2013-10-23T06:13:11.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }