[TIMOB-366] Titanium.Database.execute should support indexed arguments in an array
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-07-25T13:04:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, arguments, database, execute, ios, patch |
Reporter | Johann Richard |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:28:01.000+0000 |
Updated | 2012-07-28T16:33:46.000+0000 |
Description
.execute(sql, args) currently does not support .execute(string, array), which would come in very handy in certain cases. As I understand, the Desktop version already supports that way of calling execute, at least when I read the comments in Ticket 146 (https://appcelerator.lighthouseapp.com/projects/25719/tickets/146">https://appcelerator.lighthouseapp.com/projects/25719/tickets/146) in Titanium Desktop. So it should be doable.
Attachments
File | Date | Size |
---|---|---|
execute.patch | 2011-04-15T02:28:02.000+0000 | 839 |
And here's a (possible) patch to implement this behaviour:
-- maybe you want it to be even more robust but it should actually implement more or less the behaviour of the Desktop variant of Titanium. At least my tests on the iPhone plus the DB-related Unit tests in the titanium_mobile "Titanium" App did not show any isses w/ that patch when I custom built the SDK.
Need to discuss in R&D for feature parity, but if this exists in Desktop, then it should probably exist for mobile.
This is already fixed. See the doc [here](http://docs.appcelerator.com/titanium/2.1/#!/api/Titanium.Database.DB-method-execute).