From 534a6f075afa6e700f5410008fa3da515e96c7fa Mon Sep 17 00:00:00 2001 From: brianc Date: Thu, 28 Oct 2010 17:40:27 -0700 Subject: [PATCH] fixed to match actual api --- Client.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Client.md b/Client.md index 8be4150..f702ea3 100644 --- a/Client.md +++ b/Client.md @@ -14,8 +14,9 @@ API. Help? Yes please! client.query("create temp table ids(id integer)"); client.query("insert into ids(id) values(1)"); client.query("insert into ids(id) values(2)"); - var query = client.query("select * from ids", function(row) { - row.fields[0] // <- that equals 1 the first time. 2 the second time. + var query = client.query("select * from ids"); + query.on('row', function(row) { + console.log(row); }); query.on('end', function() { client.end();