Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19079] Windows: Database.Resultset.fieldByName should be case insensitive

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-06-26T13:38:55.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-06-26T08:57:30.000+0000
Updated2015-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();
}

Comments

  1. Kota Iguchi 2015-06-26

    https://github.com/appcelerator/titanium_mobile_windows/pull/330
  2. Lokesh Choudhary 2015-06-30

    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

JSON Source