Skip to content

Commit 807f983

Browse files
committed
Fix stale connections after initial error
1 parent b4e7750 commit 807f983

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ function Postgres(a, b) {
242242
group by b.oid, b.typarray
243243
order by b.oid
244244
`)
245+
}).catch(err => {
246+
arrayTypesPromise = null
247+
throw err
245248
}).then(types => {
246249
types.forEach(({ oid, typarray }) => addArrayType(oid, typarray))
247250
ready = true

0 commit comments

Comments
 (0)