fix query in readme - closes #244

This commit is contained in:
Brian C 2013-01-16 10:00:48 -06:00
parent 21c31f69e6
commit 9286a66303

View File

@ -22,7 +22,7 @@ var conString = "tcp://postgres:1234@localhost/postgres";
//note: error handling omitted
var client = new pg.Client(conString);
client.connect(function(err) {
client.query('SELECT NOW() AS theTime', function(err, result) {
client.query('SELECT NOW() AS "theTime"', function(err, result) {
console.log(result.rows[0].theTime);
//output: Tue Jan 15 2013 19:12:47 GMT-600 (CST)
})