Skip to content

Commit e413124

Browse files
authored
fix: preparePipeline
1 parent 40df1bb commit e413124

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/pg/lib/query.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,11 @@ class Query extends EventEmitter {
280280
rows: this.rows,
281281
})
282282

283-
connection.flush()
283+
if (!this.rows) {
284+
connection.sync()
285+
} else {
286+
connection.flush()
287+
}
284288
}
285289
}
286290

0 commit comments

Comments
 (0)