{ "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
\n

But this only works on Android - the proper way to do this\nis:

\n
\ndb.execute(mysqlString, arg1, arg2, arg3);\n
\n

Until this feature is added for iOS, the docs need to be\nupdated:

\n

\nhttp://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Dat...

{html}", "attachment": [], "flagged": false, "summary": "API doc, db.execute", "creator": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "129707", "author": { "name": "mickstaugaard", "key": "mickstaugaard", "displayName": "Mick Staugaard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Yes, please change the implementation to\ndb.execute(mysqlString,[arg1, arg2, arg3]); as this is more\nflexible.

{html}", "updateAuthor": { "name": "mickstaugaard", "key": "mickstaugaard", "displayName": "Mick Staugaard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:32:53.000+0000", "updated": "2011-04-15T03:32:53.000+0000" }, { "id": "129708", "author": { "name": "skypanther1", "key": "skypanther1", "displayName": "skypanther", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "skypanther1", "key": "skypanther1", "displayName": "skypanther", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:32:53.000+0000", "updated": "2011-04-15T03:32:53.000+0000" }, { "id": "129709", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This is not an API doc issue, this is a feature parity issue\nbecause there's no reason for iOS to not support this.

\n

Duplicate of another bug as well.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:32:54.000+0000", "updated": "2011-04-15T03:32:54.000+0000" }, { "id": "129710", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

fixing tabs, slotting into the milestone where it's being\nworked.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:32:55.000+0000", "updated": "2011-04-15T03:32:55.000+0000" }, { "id": "129711", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:32:55.000+0000", "updated": "2011-04-15T03:32:55.000+0000" }, { "id": "130778", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "rollback wrong update", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2011-04-15T07:18:50.000+0000", "updated": "2011-04-15T07:18:50.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }