From a79c8e7992269a796a477c20d9c775b7685991c0 Mon Sep 17 00:00:00 2001 From: "Brian M. Carlson" Date: Fri, 15 May 2020 17:51:09 -0500 Subject: [PATCH] Send sync after flush --- packages/pg/lib/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pg/lib/connection.js b/packages/pg/lib/connection.js index 98b6b5a5..65867026 100644 --- a/packages/pg/lib/connection.js +++ b/packages/pg/lib/connection.js @@ -172,8 +172,8 @@ Connection.prototype.flush = function () { const syncBuffer = serialize.sync() Connection.prototype.sync = function () { this._ending = true - this._send(syncBuffer) this._send(flushBuffer) + this._send(syncBuffer) } const endBuffer = serialize.end()