[TIMOB-19079] Windows: Database.Resultset.fieldByName should be case insensitive
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-06-26T13:38:55.000+0000 |
Affected Version/s | Release 4.1.0 |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2015-06-26T08:57:30.000+0000 |
Updated | 2015-06-30T23:35:48.000+0000 |
Description
Titanium.Database.ResultSet.fieldByName
should be case insensitive.
var rows = db.execute('SELECT rowid,name,phone_number,city FROM people');
while (rows.isValidRow()){
Ti.API.info(rows.fieldByName('ROWID') + ', phone_number: ' + rows.fieldByName('PHONE_NUMBER'));
Ti.API.info(rows.fieldByName('rowid') + ', phone_number: ' + rows.fieldByName('phone_number'));
rows.next();
}
https://github.com/appcelerator/titanium_mobile_windows/pull/330
Verified the fix. Database.Resultset.fieldByName is not affected by upper or lowercase. Closing. Environment: Appc Studio: 4.1.0.201506261427 Ti SDK: 4.1.0.v20150630142238 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-4 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1