{ "id": "62867", "key": "TIMOB-2235", "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": "11229", "name": "Release 1.5.0 M04", "archived": true, "released": true, "releaseDate": "2010-12-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:29.000+0000", "created": "2011-04-15T03:14:23.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "database", "defect", "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:29.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
CREATE TABLE foo (myColumn INT);
\nvar rs = db.execute(\"SELECT myColumn FROM foo\");
\nalert(rs.fieldName(0));
On android, the output is 'myColumn'.
\nOn iphone, the output is 'mycolumn'. This is wrong.
The root cause is logic which provides case-insensitive matching\nfor rs.fieldByName('mycolumn'). This behavior is correct, but the\nrs.fieldName(0) behavior is not (on iphone only).
\nI've already fixed this in my titanium branch. I've created a\nmerge request here: http://github.com/appcelerator/titanium_mobile/pull/11
(from [555db6980b222bb3a24074e4d1fad28564f3c885])\n[#2235 state:open] (Requires test before sending\nto QA) don't mange sql column names for ResultSet.fieldName(), but\nstill preserve case insensitive search for\nResultSet.fieldByName()
\n\nhttp://github.com/appcelerator/titanium_mobile/commit/555db6980b222...
Merge complete. Assigning to Blain for test.
Didn't we fix this? Shouldn't it be fixed-in-qa?
yup.
iPod 3GT 4.2.1, 1.5.0.a899d42