Skip to content

Commit 9286a66

Browse files
committed
fix query in readme - closes brianc#244
1 parent 21c31f6 commit 9286a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var conString = "tcp://postgres:1234@localhost/postgres";
2222
//note: error handling omitted
2323
var client = new pg.Client(conString);
2424
client.connect(function(err) {
25-
client.query('SELECT NOW() AS theTime', function(err, result) {
25+
client.query('SELECT NOW() AS "theTime"', function(err, result) {
2626
console.log(result.rows[0].theTime);
2727
//output: Tue Jan 15 2013 19:12:47 GMT-600 (CST)
2828
})

0 commit comments

Comments
 (0)