From 08b113a95932f74dd87d6883eba3da95e2d2879e Mon Sep 17 00:00:00 2001 From: Iain Campion Date: Wed, 28 Mar 2012 21:45:36 +1300 Subject: [PATCH] =?UTF-8?q?coffeescript=20overlooked=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d16dc9f..9f8d0a5 100644 --- a/README.md +++ b/README.md @@ -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"