[TIMOB-15196] BlackBerry: Titanium.Database.ResultSet.fieldName([index]) is not implemented.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-09-16T23:47:13.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | BlackBerry |
| Labels | blackberry, database, resultset |
| Reporter | Gertjan Smits |
| Assignee | Pedro Enrique |
| Created | 2013-09-13T13:59:02.000+0000 |
| Updated | 2017-03-13T20:58:14.000+0000 |
Description
Titanium.Database.ResultSet.fieldName([index]) is not implemented.
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();Closing ticket as fixed.