From 1b56d154a77923da8e3be9f460d4e574fa4e8aa2 Mon Sep 17 00:00:00 2001 From: bmc Date: Sat, 3 Nov 2012 16:06:56 -0500 Subject: [PATCH] make 1st example not hang in readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4bff7fa6..9886fdeb 100644 --- a/README.md +++ b/README.md @@ -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 }); }); ```