{ "id": "106216", "key": "TIMOB-12012", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14784", "description": "2012 Sprint 25 API", "name": "2012 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-11T20:55:24.000+0000", "created": "2012-12-10T12:54:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "database", "qe-testadded", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42:50.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": "12305", "name": "Core", "description": "Central component of the Platform (outside of Tooling, or platform specific implementation details)" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "In 3.0 RC2 iOS crashes when trying to use fieldCount(). If changed to just fieldCount (the property) it works. Previously fieldCount as a property wasn't supported in iOS but I see it's available now (http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Database.ResultSet-property-fieldCount). Probably was a parity issue that was fixed but in the process causes this crash.\r\n\r\nThe code that makes it crash (from the Joli ORM lib on github):\r\n\r\n if (Titanium.Platform.name !== 'android') {\r\n fieldCount = rows.fieldCount;\r\n } else {\r\n fieldCount = rows.fieldCount();\r\n }", "attachment": [], "flagged": false, "summary": "SQLite fieldCount() Crashes on iOS", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "230940", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR's \nhttps://github.com/appcelerator/titanium_mobile/pull/3575\nhttps://github.com/appcelerator/titanium_mobile/pull/3576\n\nReverted fixes for ticket TIMOB-2328\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T22:12:16.000+0000", "updated": "2012-12-11T22:12:16.000+0000" }, { "id": "234234", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3.TESTING CODE\n\n{code}\nvar win = Ti.UI.createWindow();\nwin.open();\n \nvar db = Titanium.Database.open('testdb');\n \ndb.execute('CREATE TABLE IF NOT EXISTS DATABASETEST (ID INTEGER, NAME TEXT)');\n \ndb.execute('INSERT INTO DATABASETEST (ID, NAME ) VALUES(?,?)',1,'Name 1');\ndb.execute('INSERT INTO DATABASETEST (ID, NAME ) VALUES(?,?)',2,'Name 2');\ndb.execute('INSERT INTO DATABASETEST (ID, NAME ) VALUES(?,?)',3,'Name 3');\ndb.execute('INSERT INTO DATABASETEST (ID, NAME ) VALUES(?,?)',4,'Name 4');\n \nvar rows = db.execute('SELECT * FROM DATABASETEST');\n \nTi.API.info(\"If this didnot crash then you r fine !! fieldCount: \" + rows.fieldCount);\nTitanium.API.info('ROW COUNT = ' + rows.getRowCount());\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-14T14:08:04.000+0000", "updated": "2013-01-14T14:08:04.000+0000" }, { "id": "234378", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\nTested and verified with:\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK, build: 3.1.0.v20130114171802\nTitanium SDK, build: 3.0.1.v20130114133207\niPhone Simulator 6.0\niPhone 5 iOS 6.0\niPhone 4 iOS 4.3.5", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-15T10:00:50.000+0000", "updated": "2013-01-15T10:00:50.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }