Permalink
Browse files

make 1st example not hang in readme

  • Loading branch information...
1 parent 460d5d0 commit 1b56d154a77923da8e3be9f460d4e574fa4e8aa2 @brianc committed Nov 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.md
View
@@ -24,6 +24,7 @@ pg.connect(conString, function(err, client) {
client.query("SELECT NOW() as when", function(err, result) {
console.log("Row count: %d",result.rows.length); // 1
console.log("Current year: %d", result.rows[0].when.getFullYear());
+ pg.end(); //terminate the client pool, disconnecting all clients
});
});
```

0 comments on commit 1b56d15

Please sign in to comment.