mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
pg-pool now throws an error when calling done === client.release multiple times
parent
f9dc8c82b6
commit
b8412273ea
4
FAQ.md
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:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user