Skip to content

Commit 5581b55

Browse files
committed
globals as new buffers
1 parent b8bc23c commit 5581b55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/pg/lib/connection.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ var EventEmitter = require('events').EventEmitter
55
const { parse, serialize } = require('../../pg-protocol/dist')
66
const { getStream, getSecureStream } = require('./stream')
77

8-
const flushBuffer = serialize.flush()
9-
const syncBuffer = serialize.sync()
10-
const endBuffer = serialize.end()
8+
const flushBuffer = Buffer.from(serialize.flush())
9+
const syncBuffer = Buffer.from(serialize.sync())
10+
const endBuffer = Buffer.from(serialize.end())
1111

1212
// TODO(bmc) support binary mode at some point
1313
class Connection extends EventEmitter {

0 commit comments

Comments
 (0)