From 3271b5b016f52cef0e1448434db7f6dba2572f23 Mon Sep 17 00:00:00 2001 From: brianc Date: Sun, 10 Oct 2010 18:23:06 -0500 Subject: [PATCH] simple query works --- test/api-tests.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/api-tests.js b/test/api-tests.js index f6f564fb..850222ef 100644 --- a/test/api-tests.js +++ b/test/api-tests.js @@ -33,7 +33,12 @@ client3.on('ReadyForQuery', function() { console.log('client3 ready for query'); }); -var query = client3.query('create temporary table bang (id integer)'); +client3.query('create temporary table bang (id integer)'); +client3.query('insert into bang(id) VALUES(1)'); +var query = client3.query('select * from bang'); +query.on('row', function(data) { + console.log(data); +}); query.on('end', function() { client3.disconnect(); });