Skip to content

Commit

Permalink
Update readme (#1210)
Browse files Browse the repository at this point in the history
* Fix sample code in README

* Fix typo
  • Loading branch information
pataiadam authored and brianc committed Feb 13, 2017
1 parent f6c40b9 commit 6e63f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ pool.connect(function(err, client, done) {
return console.error('error fetching client from pool', err);
}
client.query('SELECT $1::int AS number', ['1'], function(err, result) {
//call `done()` to release the client back to the pool
done();
//call `done(err)` to release the client back to the pool (or destroy it if there is an error)
done(err);

if(err) {
return console.error('error running query', err);
Expand Down

0 comments on commit 6e63f0e

Please sign in to comment.