mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-13 12:35:09 -05:00
Update db.transaction() and tx.executeSql() callback in Cordova-iOS version
This commit is contained in:
parent
44bd4ae17c
commit
4df3314693
@ -202,7 +202,7 @@ Legacy PhoneGap (old version)
|
||||
db.transaction(function(tx) {
|
||||
return tx.executeSql("select count(id) as cnt from test_table;", [], function(tx, res) {
|
||||
console.log("rows.length: " + res.rows.length + " -- should be 1");
|
||||
return console.log("rows[0].cnt: " + res.rows.item[0].cnt + " -- should be 1");
|
||||
return console.log("rows[0].cnt: " + res.rows.item(0).cnt + " -- should be 1");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user