make 1st example not hang in readme

This commit is contained in:
bmc 2012-11-03 16:06:56 -05:00
parent 460d5d0ab0
commit 1b56d154a7

View File

@ -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
});
});
```