[TIMOB-17263] Can't use null arguments with Titanium.Database.DB.execute on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | db, execute, null, query |
Reporter | carlo |
Assignee | Unknown |
Created | 2014-07-01T12:19:59.000+0000 |
Updated | 2018-02-28T20:03:12.000+0000 |
Description
var db = Ti.Database.open('test');
var row = db.execute("select ? = ? as testfield", [1,null]);
alert("result: "+row.fieldByName('testfield'));
Works on iOS, "Uncaught Error: the bind value at index 2 is null" on Android.
Reproduce this problem on Andriod with both Titanium SDK 3.2.1 and 3.30RC My test case:
Bind value can't be set null for Android platform, but works for iOS