Skip to content

Commit

Permalink
fix query in readme - closes #244
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc committed Jan 16, 2013
1 parent 21c31f6 commit 9286a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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)
})
Expand Down

0 comments on commit 9286a66

Please sign in to comment.