Skip to content

Commit d994000

Browse files
authored
fix: ending conection
1 parent e413124 commit d994000

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

packages/pg/lib/connection.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ class Connection extends EventEmitter {
178178
this._send(syncBuffer)
179179
}
180180

181+
pipelineSync() {
182+
// Send sync without marking connection as ending (for pipeline mode)
183+
this._send(syncBuffer)
184+
}
185+
181186
ref() {
182187
this.stream.ref()
183188
}

packages/pg/lib/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class Query extends EventEmitter {
281281
})
282282

283283
if (!this.rows) {
284-
connection.sync()
284+
connection.pipelineSync()
285285
} else {
286286
connection.flush()
287287
}

0 commit comments

Comments
 (0)