Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix query in readme - closes #244

  • Loading branch information...
commit 9286a6630368270d671e669582a1466fd62dbe02 1 parent 21c31f6
@brianc authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -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)
})
Please sign in to comment.
Something went wrong with that request. Please try again.