mirror of
https://github.com/knex/knex.git
synced 2025-06-26 22:00:25 +00:00
fix error on postgres when setting query_timeout (#5673)
This commit is contained in:
parent
d908f09d17
commit
7b7fef55e8
@ -194,7 +194,9 @@ class Client_PG extends Client {
|
||||
|
||||
return new Promise(function (resolver, rejecter) {
|
||||
const queryStream = connection.query(
|
||||
new PGQueryStream(sql, obj.bindings, options)
|
||||
new PGQueryStream(sql, obj.bindings, options), err => {
|
||||
rejecter(err);
|
||||
}
|
||||
);
|
||||
|
||||
queryStream.on('error', function (error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user