Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15196] BlackBerry: Titanium.Database.ResultSet.fieldName([index]) is not implemented.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-09-16T23:47:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsBlackBerry
Labelsblackberry, database, resultset
ReporterGertjan Smits
AssigneePedro Enrique
Created2013-09-13T13:59:02.000+0000
Updated2017-03-13T20:58:14.000+0000

Description

Titanium.Database.ResultSet.fieldName([index]) is not implemented.

Comments

  1. Pedro Enrique 2013-09-16

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/173 Code to test:
       
       var win = Titanium.UI.createWindow({
           title : 'Test Window'
       });
       
       win.open();
       
       var db = Ti.Database.open('my_db');
       db.execute('CREATE TABLE IF NOT EXISTS people (name TEXT, phone_number TEXT, city TEXT)');
       db.execute('DELETE FROM people');
       
       var thisName = 'Arthur';
       var thisPhoneNo = '1-617-000-0000';
       var thisCity = 'Mountain View';
       db.execute('INSERT INTO people (name, phone_number, city) VALUES (?, ?, ?)', thisName, thisPhoneNo, thisCity);
       
       var personArray = ['Paul','020 7000 0000', 'London'];
       db.execute('INSERT INTO people (name, phone_number, city) VALUES (?, ?, ?)', personArray);
       var rows = db.execute('SELECT * FROM people');
       
       // Should alert "phone_number"
       alert(rows.fieldName(1));
       
       db.close();
       
  2. Lee Morris 2017-03-13

    Closing ticket as fixed.

JSON Source