coffeescript overlooked …

This commit is contained in:
Iain Campion 2012-03-28 21:45:36 +13:00
parent 971a859f68
commit 08b113a959
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ General Usage
db.transaction (tx) ->
tx.executeSql [ "INSERT INTO test_table (data, data_num) VALUES (?,?)", "test", 100], (res) ->
tx.executeSql "INSERT INTO test_table (data, data_num) VALUES (?,?)", ["test", 100], (res) ->
# success callback
@ -67,7 +67,7 @@ General Usage
console.log "rowsAffected: #{res.rowsAffected} -- should be 1"
# check the count (not a part of the transaction)
db.executeSql "select count(id) as cnt from test_table;", (res) ->
db.executeSql "select count(id) as cnt from test_table;", [], (res) ->
console.log "rows.length: #{res.rows.length} -- should be 1"
console.log "rows[0].cnt: #{res.rows[0].cnt} -- should be 1"