{ "id": "63549", "key": "TIMOB-2917", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11246", "name": "Sprint 2011-11", "archived": true, "released": true, "releaseDate": "2011-03-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:26.000+0000", "created": "2011-04-15T03:32:52.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "database", "execute", "feature", "ios", "release-1.7.0", "reported-1.5.1" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:26.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}
The API docs state that Ti.Database.execute takes an array for\nreplacement values, like:
\n\ndb.execute(mysqlString,[arg1, arg2, arg3]);
\n
\nBut this only works on Android - the proper way to do this\nis:
\n\ndb.execute(mysqlString, arg1, arg2, arg3);
\n
\nUntil this feature is added for iOS, the docs need to be\nupdated:
\n\nhttp://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Dat...
Yes, please change the implementation to\ndb.execute(mysqlString,[arg1, arg2, arg3]); as this is more\nflexible.
Also note that db.execute takes varargs only for select\nstatements. It won't work for ALTER, PRAGMA, and probably others.\nSee my helpdesk ticket http://developer.appcelerator.com/helpdesk/view/53061
This is not an API doc issue, this is a feature parity issue\nbecause there's no reason for iOS to not support this.
\nDuplicate of another bug as well.
fixing tabs, slotting into the milestone where it's being\nworked.
Tested with Titanium SDK version: 1.7.0 (03/17/11 10:02 630a276)\non
\niOS 4.0.2 testDatabaseLH2917 true 160 Success
\nEmulator 2.1 testDatabaseLH2917 true 160 Success