pg-pool now throws an error when calling done === client.release multiple times

Charmander 2018-06-01 00:26:25 +00:00
parent f9dc8c82b6
commit b8412273ea

4
FAQ.md

@ -192,9 +192,7 @@ It will wait, and call your callback with a connection after one becomes availab
### 18. (New Question) Is there a way to check if I have an active connection?
### 19. (New Question) Do I correctly assume that calling done() or done(err) more than once (multiple times) has no side-effects?
### 20. I obtain `Promise { <pending> }` from a query
### 19. I obtain `Promise { <pending> }` from a query
See https://github.com/brianc/node-postgres/issues/1130. The query returns a promise because of its asynchronous design. You should use a callback, the `then` method or await. Callback example: